X-Git-Url: https://git.openstreetmap.org./rails.git/blobdiff_plain/30ad58c01ff8acae377cfd974fcc94d6898722da..b1308a87be1aaa0c6e5fd27e0635ef22b76e8081:/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); }); });