mapgl
mapgl copied to clipboard
`add_reset_control()` doesn't honor `bounds` of initial map
Similar to #49; figure out how to fix
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.