]> git.openstreetmap.org Git - rails.git/blobdiff - app/assets/javascripts/user.js
Restore prohibition on low-zoom notes
[rails.git] / app / assets / javascripts / user.js
index 4e646771247c93dad7c67cbe4cd49fd76c85ae0d..86a30958b97d258b22ab81ebae1e60bb74c82ff4 100644 (file)
@@ -4,13 +4,9 @@ $(document).ready(function () {
     zoomControl: false
   }).addLayer(new L.OSM.Mapnik());
 
-  L.control.zoom({position: 'topright'})
+  L.OSM.zoom()
     .addTo(map);
 
-  $("#map").on("resized", function () {
-    map.invalidateSize();
-  });
-
   if (OSM.home) {
     map.setView([OSM.home.lat, OSM.home.lon], 12);
   } else {