]> git.openstreetmap.org Git - rails.git/blobdiff - app/assets/javascripts/user.js
Implement long URL option, toggling, and labeling for share
[rails.git] / app / assets / javascripts / user.js
index 25456d04ebb080b46564fb359b5801fac551c163..4e646771247c93dad7c67cbe4cd49fd76c85ae0d 100644 (file)
@@ -1,7 +1,14 @@
 $(document).ready(function () {
 $(document).ready(function () {
-  var map = createMap("map", {
-    zoomControl: true,
-    panZoomControl: false
+  var map = L.map("map", {
+    attributionControl: false,
+    zoomControl: false
+  }).addLayer(new L.OSM.Mapnik());
+
+  L.control.zoom({position: 'topright'})
+    .addTo(map);
+
+  $("#map").on("resized", function () {
+    map.invalidateSize();
   });
 
   if (OSM.home) {
   });
 
   if (OSM.home) {