Skip to content

Commit

Permalink
tidied
Browse files Browse the repository at this point in the history
  • Loading branch information
dcooley committed May 21, 2024
1 parent e8da085 commit 6bb6bcb
Showing 1 changed file with 0 additions and 5 deletions.
5 changes: 0 additions & 5 deletions inst/htmlwidgets/mapdeck_location.js
Original file line number Diff line number Diff line change
Expand Up @@ -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"];
Expand All @@ -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,
Expand Down

0 comments on commit 6bb6bcb

Please sign in to comment.