X-Git-Url: https://git.openstreetmap.org./rails.git/blobdiff_plain/4563244fd1cb43dca00b427e1f13ac890b7f00a0..606e66beb32d2b683651cf9ac7ae575d90df7ad6:/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()) {