]> git.openstreetmap.org Git - rails.git/blobdiff - app/assets/javascripts/index.js
Update leaflet.locate (fixes #438)
[rails.git] / app / assets / javascripts / index.js
index 5190277c98c6927a040be94f64d6b6c17e5ef335..e46ca6d9d09d4483ace3474e5ca5299434e01465 100644 (file)
@@ -75,7 +75,10 @@ $(document).ready(function () {
 
   L.control.locate({
     position: position,
-    title: I18n.t('javascripts.map.locate.title')
+    strings: {
+      title: I18n.t('javascripts.map.locate.title'),
+      popup: I18n.t('javascripts.map.locate.popup')
+    }
   }).addTo(map);
 
   var sidebar = L.OSM.sidebar('#map-ui')