Skip to content
This repository was archived by the owner on Dec 6, 2019. It is now read-only.

Commit 9b6b099

Browse files
Nabeel Shahzadnabeelio
authored andcommitted
Fix navpoint icons
1 parent 9a5acdc commit 9b6b099

File tree

2 files changed

+5
-9
lines changed

2 files changed

+5
-9
lines changed

lib/js/acarsmap.js

Lines changed: 3 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -131,8 +131,6 @@ function renderAcarsMap(opts) {
131131
steps: 10
132132
}).addTo(map);
133133

134-
console.log(selPoints);
135-
console.log(selPointsLayer);
136134
map.fitBounds(selPointsLayer.getBounds());
137135
};
138136

@@ -173,16 +171,14 @@ function renderAcarsMap(opts) {
173171
flight.trclass = "odd";
174172

175173
// Pull ze templates!
176-
var map_row = tmpl("acars_map_row", { flight: flight });
177-
var detailed_bubble = tmpl("acars_map_bubble", { flight: flight });
174+
const map_row = tmpl("acars_map_row", { flight: flight });
175+
const detailed_bubble = tmpl("acars_map_bubble", { flight: flight });
178176

179177
$('#pilotlist').append(map_row);
180178

181179
const pos = L.latLng(lat, lng);
182-
183180
const marker = L.marker(pos, {
184-
icon: getHeadingIcon(flight.heading),
185-
flightdetails: data[i],
181+
icon: getHeadingIcon(flight.heading)
186182
})
187183
.on('click', (e) => {
188184
flightClick(flight);

lib/js/base_map.js

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -10,11 +10,11 @@ const MapFeatures = {
1010
departure: L.icon({ iconUrl: depicon, iconSize: [35, 35] }),
1111
arrival: L.icon({ iconUrl: arricon, iconSize: [35, 35] }),
1212
vor: L.icon({
13-
iconUrl: "<?php echo fileurl('/lib/images/icon_vor.png') ?>",
13+
iconUrl: url + "/lib/images/icon_vor.png",
1414
iconSize: [19, 20],
1515
}),
1616
fix: L.icon({
17-
iconUrl: "<?php echo fileurl('/lib/images/icon_fix.png') ?>",
17+
iconUrl: url + "/lib/images/icon_fix.png",
1818
iconSize: [12, 15],
1919
}),
2020
},

0 commit comments

Comments
 (0)