fix:首页修改,交安事件联调,

This commit is contained in:
2024-10-29 09:45:49 +08:00
parent 0a840663d9
commit c92e37c192
13 changed files with 692 additions and 466 deletions
+5
View File
@@ -254,6 +254,11 @@ export default {
map.getTargetElement().style.cursor = "auto";
}
});
// 地图缩放级别事件
map.on("moveend",(e)=> {
const zoom = map.getView().getZoom().toFixed(); //获取当前地图的缩放级别
this.$emit("map-moveend", zoom);
});
// 图层选择事件
let selectSingClick = new Select({ style: null });
map.addInteraction(selectSingClick);