X-Git-Url: https://git.openstreetmap.org./rails.git/blobdiff_plain/281dc29c5c9e3c4c7d0df786df56e46f27541d22..4b2c64fbed7ed3420e10d1f1a7eaef26f0e4e025:/app/assets/javascripts/leaflet.note.js diff --git a/app/assets/javascripts/leaflet.note.js b/app/assets/javascripts/leaflet.note.js index 0df22eb57..8451e9b72 100644 --- a/app/assets/javascripts/leaflet.note.js +++ b/app/assets/javascripts/leaflet.note.js @@ -13,8 +13,6 @@ L.OSM.note = function (options) { map.on('zoomend', update); - update(); - function update() { var disabled = OSM.STATUS === "database_offline" || map.getZoom() < 12; link @@ -24,6 +22,8 @@ L.OSM.note = function (options) { 'javascripts.site.createnote_tooltip')); } + update(); + return $container[0]; };