X-Git-Url: https://git.openstreetmap.org./rails.git/blobdiff_plain/b756c5fd6ea4a982a654e07f42c8250c7f7d85fc..d359cd70f1527b372b71c2f927e3f45fb0fcf509:/app/assets/javascripts/index.js?ds=inline diff --git a/app/assets/javascripts/index.js b/app/assets/javascripts/index.js index d84b8ae24..ef553f328 100644 --- a/app/assets/javascripts/index.js +++ b/app/assets/javascripts/index.js @@ -91,10 +91,6 @@ $(document).ready(function () { map.dataLayer = new L.OSM.DataLayer(null); map.dataLayer.options.code = 'D'; - $("#sidebar").on("opened closed", function () { - map.invalidateSize(); - }); - var position = $('html').attr('dir') === 'rtl' ? 'topleft' : 'topright'; L.OSM.zoom({position: position}) @@ -162,14 +158,6 @@ $(document).ready(function () { } } - if (params.box) { - L.rectangle(params.box, { - weight: 2, - color: '#e90', - fillOpacity: 0 - }).addTo(map); - } - if (params.marker) { marker.setLatLng([params.mlat, params.mlon]).addTo(map); } @@ -215,6 +203,8 @@ $(document).ready(function () { initializeExport(map); initializeBrowse(map, params); initializeNotes(map, params); + + if ('undefined' !== typeof initializeChangesets) initializeChangesets(map); }); function updateLocation() {