Compare commits

..

2 Commits

Author SHA1 Message Date
姚宇浩 21445ad8cb Merge branch 'main' of https://git.cityme.com.cn/xiangshan/ggfwjsc 2024-08-27 14:58:39 +08:00
姚宇浩 60fa1316eb 1 2024-08-27 14:58:11 +08:00
1 changed files with 5 additions and 5 deletions

View File

@ -1005,7 +1005,7 @@ const moveEdit = () => {
const moveCancel = () => {
movepoy.close();
sceneMove.removeEventListener(OperateEventType.CLICK, clickHandler);
//
//GeoJSONLayer
polyLayer.removeOverlay(cs_choose_arr.value[0]);
map.removeGeoJSONLayer(polyLayer);
//-------
@ -1019,8 +1019,6 @@ const moveSave = () => {
arrJWD = [[[]]];
movepoy.close();
sceneMove.removeEventListener(OperateEventType.CLICK, clickHandler);
polyLayer.removeOverlay(cs_choose_arr.value[0]);
map.removeGeoJSONLayer(polyLayer);
cs_choose_arr.value[0].points.forEach((item, index) => {
let arr1 = [];
arr1.push(item?.latLng.lng);
@ -1028,7 +1026,8 @@ const moveSave = () => {
arrJWD[0][0].push(arr1);
});
console.log("arrJWD", arrJWD);
polyLayer.removeOverlay(cs_choose_arr.value[0]);
map.removeGeoJSONLayer(polyLayer);
moveDK();
};
//退
@ -1036,7 +1035,7 @@ const moveBack = () => {
// select.close();
movepoy.close();
sceneMove.removeEventListener(OperateEventType.CLICK, clickHandler);
polyLayer.removeOverlay(cs_choose_arr.value[0]);
polyLayer.removeOverlay(cs_choose_arr.value[0]);
map.removeGeoJSONLayer(polyLayer);
cs_choose_arr.value.forEach((item, index) => {
map.removeOverlay(cs_choose_arr.value[index]);
@ -1136,6 +1135,7 @@ const closeEdit = async () => {
});
addCsChoose();
edit_mode.value = false;
drawing.value = false;
// let a = document.documentElement.getElementsByClassName("left")[0];
// a.style.opacity = "1";
// let b = document.documentElement.getElementsByClassName("right")[0];