[openstreetmap-website] Pan to first Nominatim search result (#1041)

Tom Hughes notifications at github.com
Sun Mar 20 18:39:58 UTC 2016

I think `clickSearchResult` needs to be split, so that the "zoom to object" logic is in a separate function that is invoked both from the click handler and from the XHR success handler.

Otherwise if the first result does not have an OSM type and id (in other words if it's not from nominatim) then we will wind up invoking `preventDefault` etc on `false.

You are receiving this because you are subscribed to this thread.
Reply to this email directly or view it on GitHub:
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.openstreetmap.org/pipermail/rails-dev/attachments/20160320/6e2e24b9/attachment.html>

More information about the rails-dev mailing list