X-Git-Url: https://git.openstreetmap.org./rails.git/blobdiff_plain/78f608b114c05f1147936a57b930831e28000c1a..dc8751cf7af7ce0e0033c078dac064d62ab819e6:/app/assets/javascripts/user.js diff --git a/app/assets/javascripts/user.js b/app/assets/javascripts/user.js index 25456d04e..b5520aa36 100644 --- a/app/assets/javascripts/user.js +++ b/app/assets/javascripts/user.js @@ -1,7 +1,14 @@ $(document).ready(function () { - var map = createMap("map", { - zoomControl: true, - panZoomControl: false + var map = L.map("map", { + attributionControl: false, + zoomControl: false + }).addLayer(new L.OSM.Mapnik()); + + L.OSM.zoom() + .addTo(map); + + $("#map").on("resized", function () { + map.invalidateSize(); }); if (OSM.home) {