Skip to content

Commit 03ec14f

Browse files
committed
fix map issue
1 parent 7776ff5 commit 03ec14f

File tree

1 file changed

+4
-11
lines changed

1 file changed

+4
-11
lines changed

js/tracker.js

Lines changed: 4 additions & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -449,15 +449,7 @@ function load() {
449449
showLaunchSites();
450450
map.addLayer(launches);
451451
}
452-
453-
map.on('moveend', function (e) {
454-
lhash_update();
455-
});
456-
457-
map.on('baselayerchange', function (e) {
458-
selectedLayer = e.layer.id;
459-
});
460-
452+
461453
map.on('zoomend', function() {
462454
//do check for horizon labels
463455
if (!offline.get("opt_hide_horizon")) {
@@ -516,10 +508,11 @@ function load() {
516508

517509
L.control.periodcontrol({ position: 'topleft' }).addTo(map);
518510

519-
map.on('idle', function() {
511+
map.on('moveend', function() {
520512
lhash_update();
521513
});
522-
map.on('baselayerchange', function() {
514+
map.on('baselayerchange', function(e) {
515+
selectedLayer = e.layer.id;
523516
lhash_update();
524517
});
525518

0 commit comments

Comments
 (0)