map.attributionControl.setPrefix(permalinks);
- map.on("moveend layeradd layerremove", updateLocation);
+ map.on("moveend baselayerchange", updateLocation);
if (!params.object_zoom) {
if (params.bbox) {
map.on('draw:rectangle-created', endDrag);
map.on("moveend", mapMoved);
- map.on("layeradd layerremove", htmlUrlChanged);
+ map.on("baselayerchange", htmlUrlChanged);
$("#sidebar_title").html(I18n.t('export.start_rjs.export'));
$("#sidebar_content").html(sidebarHtml);
clearMarker();
map.off("moveend", mapMoved);
- map.off("layeradd layerremove", htmlUrlChanged);
+ map.off("baselayerchange", htmlUrlChanged);
map.off('draw:rectangle-created', endDrag);
drawHandler.disable();
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);
});
});