File tree Expand file tree Collapse file tree 1 file changed +4
-11
lines changed
Expand file tree Collapse file tree 1 file changed +4
-11
lines changed Original file line number Diff line number Diff 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
You can’t perform that action at this time.
0 commit comments