X-Git-Url: https://git.openstreetmap.org./rails.git/blobdiff_plain/82f89681695a2c59fe2b3a42c9acfa92246a2a38..75a776a574cd6a711c0b4bf854701646c37c391c:/app/assets/javascripts/changeset.js?ds=sidebyside diff --git a/app/assets/javascripts/changeset.js b/app/assets/javascripts/changeset.js index 1010fbac9..7f21ae744 100644 --- a/app/assets/javascripts/changeset.js +++ b/app/assets/javascripts/changeset.js @@ -1,6 +1,18 @@ $(document).ready(function () { var changesets = [], rects = {}; - var map = createMap("changeset_list_map"); + + var map = L.map("changeset_list_map", { + attributionControl: false, + zoomControl: false + }).addLayer(new L.OSM.Mapnik()); + + L.control.zoom({position: 'topright'}) + .addTo(map); + + $("#changeset_list_map").on("resized", function () { + map.invalidateSize(); + }); + var group = L.featureGroup().addTo(map); $("[data-changeset]").each(function () {