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