X-Git-Url: https://git.openstreetmap.org./rails.git/blobdiff_plain/30ad58c01ff8acae377cfd974fcc94d6898722da..6f793e1b21a534b0331a5874613c4f3c05853a45:/app/assets/javascripts/index/key.js diff --git a/app/assets/javascripts/index/key.js b/app/assets/javascripts/index/key.js index a4fbb6c64..9722cf4cf 100644 --- a/app/assets/javascripts/index/key.js +++ b/app/assets/javascripts/index/key.js @@ -26,9 +26,9 @@ $(document).ready(function () { openSidebar({ title: title }); $("#sidebar").one("closed", function () { - map.off("zoomend layeradd layerremove", updateMapKey); + map.off("zoomend baselayerchange", updateMapKey); }); - map.on("zoomend layeradd layerremove", updateMapKey); + map.on("zoomend baselayerchange", updateMapKey); }); });