]> git.openstreetmap.org Git - rails.git/blobdiff - app/assets/javascripts/index.js
Move zoomPrecision function to the OSM namespace
[rails.git] / app / assets / javascripts / index.js
index 55e612f17668f6e3da055b2fdcf003b3a03c9285..4a9abc4dc0f78fe5fbb602f3d938a4cf2ff9b737 100644 (file)
@@ -333,7 +333,7 @@ $(document).ready(function () {
 
   $(".describe_location").on("click", function(e) {
     e.preventDefault();
-    var precision = zoomPrecision(map.getZoom());
+    var precision = OSM.zoomPrecision(map.getZoom());
     OSM.router.route("/search?query=" + encodeURIComponent(
       map.getCenter().lat.toFixed(precision) + "," +
       map.getCenter().lng.toFixed(precision)));