]> git.openstreetmap.org Git - rails.git/blobdiff - app/assets/javascripts/index.js
Add leaflet-locate control, invisible currently.
[rails.git] / app / assets / javascripts / index.js
index 7fad2ed239cc2317526cd334bbbf18aa8bc76fa6..82b6d03b8dbaaf3208095d42bbe45c3b222ece75 100644 (file)
@@ -9,7 +9,11 @@ $(document).ready(function () {
   var permalinks = $("#permalink").detach().html();
   var marker;
   var params = OSM.mapParams();
-  var map = createMap("map", {layerControl: false});
+  var map = createMap("map", {
+    layerControl: false
+  }, {
+    locateControl: true
+  });
 
   OSM.mapUI().addTo(map);