From 6bb6bcb6f78ed0b8fd201f8fe17b7e60ae14389a Mon Sep 17 00:00:00 2001 From: dcooley <=> Date: Wed, 22 May 2024 09:18:56 +1000 Subject: [PATCH] tidied --- inst/htmlwidgets/mapdeck_location.js | 5 ----- 1 file changed, 5 deletions(-) diff --git a/inst/htmlwidgets/mapdeck_location.js b/inst/htmlwidgets/mapdeck_location.js index cbedc954..1062d4c2 100644 --- a/inst/htmlwidgets/mapdeck_location.js +++ b/inst/htmlwidgets/mapdeck_location.js @@ -15,8 +15,6 @@ function md_change_location( map_id, map_type, location, zoom, pitch, bearing, d window[map_id + 'map'].setZoom( zoom ); } else { - console.log( window[ map_id + 'map' ].viewState.longitude ); - if ( window[ map_id + 'map'].viewState["default-view"] !== undefined ) { currentViewState = window[ map_id + 'map'].viewState["default-view"]; @@ -34,9 +32,6 @@ function md_change_location( map_id, map_type, location, zoom, pitch, bearing, d currentMaxPitch = currentViewState.maxPitch; currentMinPitch = currentViewState.minPitch; - - console.log( currentLon ); - window[map_id + 'map'].setProps({ initialViewState: { longitude: currentLon,