]> git.openstreetmap.org Git - rails.git/blobdiff - app/assets/javascripts/diary_entry.js
Refactor search JS
[rails.git] / app / assets / javascripts / diary_entry.js
index e17f59ad2fcde45205e43364b0d9677ccd3f1dd0..1aa728ea0f36d3c4f40b38fe667888f74c4877c9 100644 (file)
@@ -27,13 +27,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();
-    });
-
     map.setView(centre, params.zoom);
 
     if ($("#latitude").val() && $("#longitude").val()) {