X-Git-Url: https://git.openstreetmap.org./rails.git/blobdiff_plain/778659a78cdbdbf03014943b9ce85b990daa8cb1..5e407dfb34f47e6fbbbf3c11c1a8318256abb5cd:/app/assets/javascripts/index/search.js?ds=sidebyside diff --git a/app/assets/javascripts/index/search.js b/app/assets/javascripts/index/search.js index 52af38c54..ea6140e58 100644 --- a/app/assets/javascripts/index/search.js +++ b/app/assets/javascripts/index/search.js @@ -34,7 +34,7 @@ OSM.Search = function(map) { e.preventDefault(); var center = map.getCenter().wrap(), precision = OSM.zoomPrecision(map.getZoom()); - OSM.router.route("/search?query=" + encodeURIComponent( + OSM.router.route("/search?whereami=1&query=" + encodeURIComponent( center.lat.toFixed(precision) + "," + center.lng.toFixed(precision) )); });