]> git.openstreetmap.org Git - rails.git/blobdiff - app/assets/javascripts/user.js
Fix undefined=undefined in query strings
[rails.git] / app / assets / javascripts / user.js
index 25456d04ebb080b46564fb359b5801fac551c163..b5520aa36e42373ab3fdde9bb693e5c1a0ce56cc 100644 (file)
@@ -1,7 +1,14 @@
 $(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.OSM.zoom()
+    .addTo(map);
+
+  $("#map").on("resized", function () {
+    map.invalidateSize();
   });
 
   if (OSM.home) {