- var precision = OSM.zoomPrecision(map.getZoom());
- OSM.router.route("/search?query=" + encodeURIComponent(
- map.getCenter().lat.toFixed(precision) + "," +
- map.getCenter().lng.toFixed(precision)));
+ var center = map.getCenter().wrap(),
+ precision = OSM.zoomPrecision(map.getZoom());
+ OSM.router.route("/search?whereami=1&query=" + encodeURIComponent(
+ center.lat.toFixed(precision) + "," + center.lng.toFixed(precision)
+ ));