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();