]> git.openstreetmap.org Git - rails.git/blobdiff - app/assets/javascripts/index/search.js
Add support for FOSSGIS routing server
[rails.git] / app / assets / javascripts / index / search.js
index 52af38c54f338b1d76290f8195108d48a0cf5de9..ea6140e582db78dea993eccdbde6eb1659124bb9 100644 (file)
@@ -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)
     ));
   });