X-Git-Url: https://git.openstreetmap.org./rails.git/blobdiff_plain/7ad58d1411289ad241a49abb87e414ff13b60173..3787918d68354ef37deee29081712eee8373676c:/app/assets/javascripts/map.js.erb diff --git a/app/assets/javascripts/map.js.erb b/app/assets/javascripts/map.js.erb index d976b9f8c..c97dc76c3 100644 --- a/app/assets/javascripts/map.js.erb +++ b/app/assets/javascripts/map.js.erb @@ -71,6 +71,10 @@ function createMap(divName, options) { }); map.addLayer(markers); + $("#" + divName).on("resized", function () { + map.updateSize(); + }); + return map; }