X-Git-Url: https://git.openstreetmap.org./rails.git/blobdiff_plain/4563244fd1cb43dca00b427e1f13ac890b7f00a0..a3d69ee264f234ee85990b20e421b7cee8baa669:/app/assets/javascripts/diary_entry.js?ds=inline diff --git a/app/assets/javascripts/diary_entry.js b/app/assets/javascripts/diary_entry.js index e17f59ad2..1aa728ea0 100644 --- a/app/assets/javascripts/diary_entry.js +++ b/app/assets/javascripts/diary_entry.js @@ -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()) {