[openstreetmap/openstreetmap-website] Don't let users get too close to the poles (#2147)

Tom Hughes notifications at github.com
Tue Feb 19 10:23:20 UTC 2019


So it is possible to do this in leaflet by setting `maxBounds` on the map, but there's no way to do it only in the vertical direction so it also stops you scrolling past the dateline in either direction.

The other option would be to add our `moveend` handler to enforce it in only one direction, which is basically has `maxBounds` works internally.

-- 
You are receiving this because you are subscribed to this thread.
Reply to this email directly or view it on GitHub:
https://github.com/openstreetmap/openstreetmap-website/issues/2147#issuecomment-465074127
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.openstreetmap.org/pipermail/rails-dev/attachments/20190219/6b866b26/attachment.html>


More information about the rails-dev mailing list