]> git.openstreetmap.org Git - rails.git/blobdiff - app/assets/javascripts/user.js
Update to iD v2.19.3
[rails.git] / app / assets / javascripts / user.js
index b9518f10de451cca7f76cccd20c257dad91f663c..3bdb35470c24320c21c8e6f276bf41c082f88d7a 100644 (file)
@@ -1,4 +1,4 @@
-//= require leaflet.locate
+//= require leaflet.locatecontrol/src/L.Control.Locate
 
 $(document).ready(function () {
   if ($("#map").length) {
@@ -19,7 +19,7 @@ $(document).ready(function () {
       strings: {
         title: I18n.t("javascripts.map.locate.title"),
         popup: function (options) {
-          return I18n.t("javascripts.map.locate." + options.unit + "Popup", :count => options.distance);
+          return I18n.t("javascripts.map.locate." + options.unit + "Popup", { count: options.distance });
         }
       }
     }).addTo(map);