]> git.openstreetmap.org Git - rails.git/blobdiff - app/assets/javascripts/index/contextmenu.js
Merge remote-tracking branch 'upstream/pull/2136'
[rails.git] / app / assets / javascripts / index / contextmenu.js
index 1ee703e604579d01444a880ec12d7e5f26dcc9be..080a4de72b14691b5328a8b12976f061901b23db 100644 (file)
@@ -49,7 +49,7 @@ OSM.initializeContextMenu = function (map) {
           lat = latlng.lat.toFixed(precision),
           lng = latlng.lng.toFixed(precision);
 
           lat = latlng.lat.toFixed(precision),
           lng = latlng.lng.toFixed(precision);
 
-      OSM.router.route("/search?query=" + encodeURIComponent(lat + "," + lng));
+      OSM.router.route("/search?whereami=1&query=" + encodeURIComponent(lat + "," + lng));
     }
   });
 
     }
   });