Zac Davies
Zac Davies
Bumping, I am having the same issue, particularly when iterating.
Going through the JS code I seem to be able to do this in the browser console for zoom `window[ 'map' + 'map'].viewState["default-view"].zoom`
Currently am accessing zoom using the following: #### JavaScript: ``` shinyjs.getzoom = function(mapdeck_map) { let view = window[mapdeck_map + 'map'].viewState['default-view']; let zoom = 0; if (view !== undefined) { zoom...
Seems to be working great so far - just need to find a way to calculate the bounds based from the lat/lon. Thanks.
maybe useful related to settings bounds: https://github.com/uber/react-map-gl/issues/442 Also I'm digging around for how the mapbox tiles are queried - it seems as if that requires the bounding box to determine...
I was able to get kinda close using the following, its not perfect due to assuming spherical earth, but conceptually it seems fine. Works good enough for my current needs...
I was wondering the same thing the other day - but I was zooming in and out quite quickly testing it and it seemed fine for me. I will test...
Don't seem to notice any performance degradation. Is working great.
Let me know if you need any support on this