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
{{ message }}
Repository navigation
Make the map "bounce" when reaching "maxBounds" #3231
Once reaching the maxBounds the map will not move, it appears to the user that interactivity is not working. In my opinion it would be better if maxBounds acted like scroll on mobile: it would allow a little bit of "give" / overscroll beyond the max bounds / zoom and bounce back.
Reacted by Andrew Harvey, Nicolas Lelong, Ben Schattinger and Neal
Activity
1ec5 commentedon Sep 20, 2016
A bouncing effect would be useful for the default maximum/minimum latitudes and maximum pitch as well.
/ref mapbox/mapbox-gl-native#2191
[-]Feature request: "Bounce" maxBounds[/-][+]Make the map "bounce" when reaching "maxBounds"[/+]ryanleichty commentedon Sep 27, 2016
That exact feature has been implemented here: http://www.walkerart.org/minnesotabydesign
I haven't looked at the code yet, but I'm assuming they built in the function themselves.
tmcw commentedon Sep 27, 2016
That's a Leaflet/Mapbox.js map, not Mapbox GL JS.
ryanleichty commentedon Sep 27, 2016
But it at least provides a visual example of the desired effect.