Skip to content

Commit 7c5b513

Browse files
authored
Merge pull request #17 from LukePrior/master
Switch to circle marker for launch site icons
2 parents 82cb921 + 9dfe49c commit 7c5b513

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

js/tracker.js

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -380,6 +380,7 @@ function load() {
380380
zoomControl: false,
381381
center: [53.467511,-2.2338940],
382382
layers: [osm],
383+
preferCanvas: true,
383384
});
384385

385386
map.addControl(new L.Control.Fullscreen({ position: 'bottomleft' }));
@@ -564,7 +565,7 @@ function showLaunchSites() {
564565
sondes = sondes.replace(new RegExp("\\b77\\b"), "M10 (possible to track)");
565566
sondes = sondes.replace(new RegExp("\\b82\\b"), "LMS6-1680 (possible to track)");
566567
sondes = sondes.replace(new RegExp("\\b84\\b"), "iMet-54 (possible to track)");
567-
var marker = new L.marker(latlon);
568+
var marker = new L.circleMarker(latlon, {color: 'black', radius: 8});
568569
var popup = new L.popup({ autoClose: false, closeOnClick: false }).setContent("<font style='font-size: 13px'>" + json[key].station_name + "</font><br><br><b>Sondes launched:</b> " + sondes);
569570
marker.bindPopup(popup);
570571
launches.addLayer(marker);

0 commit comments

Comments
 (0)