mapgl icon indicating copy to clipboard operation
mapgl copied to clipboard

`add_reset_control()` doesn't honor `bounds` of initial map

Open walkerke opened this issue 1 year ago • 1 comments

Similar to #49; figure out how to fix

walkerke avatar Oct 07 '24 15:10 walkerke

Just as a note (in case you hadn't noticed), add_reset_control() does honor center and zoom. Looking at the documentation, it seems like bounds is an alternative that overrides center and zoom for map creation, and if a map is not given center and zoom then it defaults to [0,0] and 0, respectively. You may need to return the center and zoom of the original map and have it approximate returning to the original bounds with those.

CIOData avatar Oct 08 '24 22:10 CIOData