You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
But think it would be even better to have a middle ground. Eg only keepCurrentZoomLevel if the current zoom is between say 13 and 18.
... so if below 13 (zoomed out) would zoom in.
... and if zoomed in beyond 18 it could zoom out (assuming maxZoom was set to say 16)
This would give best of both worlds? If the user is zoomed way out (say country level) then it would zoom in to show the proper position. But if they've already set to a nice midscale, it would keep it, rather than switching to the exact option the developer choose.
The text was updated successfully, but these errors were encountered:
If the user is already within 13->17, the map will keep the current zoom (lets them keep their chosen mid-level zoom) - only zooms (honouring maxZoom), if outside the range.
keepCurrentZoomLevel
in general is a nice option.But think it would be even better to have a middle ground. Eg only keepCurrentZoomLevel if the current zoom is between say 13 and 18.
... so if below 13 (zoomed out) would zoom in.
... and if zoomed in beyond 18 it could zoom out (assuming maxZoom was set to say 16)
This would give best of both worlds? If the user is zoomed way out (say country level) then it would zoom in to show the proper position. But if they've already set to a nice midscale, it would keep it, rather than switching to the exact option the developer choose.
The text was updated successfully, but these errors were encountered: