]> git.openstreetmap.org Git - rails.git/blobdiff - app/assets/javascripts/index.js
Basic framework for map UI
[rails.git] / app / assets / javascripts / index.js
index 9f0c8649340e63678c8288f60b0e0fa88c7ff093..7fad2ed239cc2317526cd334bbbf18aa8bc76fa6 100644 (file)
@@ -3,12 +3,15 @@
 //= require index/export
 //= require index/key
 //= require index/notes
+//= require index/map_ui
 
 $(document).ready(function () {
   var permalinks = $("#permalink").detach().html();
   var marker;
   var params = OSM.mapParams();
-  var map = createMap("map");
+  var map = createMap("map", {layerControl: false});
+
+  OSM.mapUI().addTo(map);
 
   L.control.scale().addTo(map);