Skip to content
Merged
Changes from 1 commit
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Next Next commit
fix map issue
  • Loading branch information
LukePrior committed Jul 11, 2021
commit 03ec14f555ae5b88f8862b9c736bca2f6dbbb3ca
15 changes: 4 additions & 11 deletions js/tracker.js
Original file line number Diff line number Diff line change
Expand Up @@ -449,15 +449,7 @@ function load() {
showLaunchSites();
map.addLayer(launches);
}

map.on('moveend', function (e) {
lhash_update();
});

map.on('baselayerchange', function (e) {
selectedLayer = e.layer.id;
});


map.on('zoomend', function() {
//do check for horizon labels
if (!offline.get("opt_hide_horizon")) {
Expand Down Expand Up @@ -516,10 +508,11 @@ function load() {

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

map.on('idle', function() {
map.on('moveend', function() {
lhash_update();
});
map.on('baselayerchange', function() {
map.on('baselayerchange', function(e) {
selectedLayer = e.layer.id;
lhash_update();
});

Expand Down