[openstreetmap/openstreetmap-website] Map pans to improved position when clicking on directions (#1745)

Tom Hughes notifications at github.com
Tue Feb 13 00:03:17 UTC 2018


Isn't using `panTo` a bit drastic? All we really want is to make sure the location is visible, so maybe something like `panInsideBounds` would be better?

To be honest I'm slightly surprised that opening a popup doesn't force it to pan so the poup is visible....

-- 
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/pull/1745#issuecomment-365105570
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.openstreetmap.org/pipermail/rails-dev/attachments/20180213/3728b3b3/attachment.html>


More information about the rails-dev mailing list