Compare commits
No commits in common. "21445ad8cb7fdc90fc126c54ec7dc3251f2c8aba" and "ab3280dc62379e3775eef49a41a454130a5241f9" have entirely different histories.
21445ad8cb
...
ab3280dc62
|
@ -1005,7 +1005,7 @@ const moveEdit = () => {
|
||||||
const moveCancel = () => {
|
const moveCancel = () => {
|
||||||
movepoy.close();
|
movepoy.close();
|
||||||
sceneMove.removeEventListener(OperateEventType.CLICK, clickHandler);
|
sceneMove.removeEventListener(OperateEventType.CLICK, clickHandler);
|
||||||
//取消第二次点击时,移动问题,先把地图上的GeoJSONLayer删除
|
//取消第二次点击时,移动问题
|
||||||
polyLayer.removeOverlay(cs_choose_arr.value[0]);
|
polyLayer.removeOverlay(cs_choose_arr.value[0]);
|
||||||
map.removeGeoJSONLayer(polyLayer);
|
map.removeGeoJSONLayer(polyLayer);
|
||||||
//-------
|
//-------
|
||||||
|
@ -1019,6 +1019,8 @@ const moveSave = () => {
|
||||||
arrJWD = [[[]]];
|
arrJWD = [[[]]];
|
||||||
movepoy.close();
|
movepoy.close();
|
||||||
sceneMove.removeEventListener(OperateEventType.CLICK, clickHandler);
|
sceneMove.removeEventListener(OperateEventType.CLICK, clickHandler);
|
||||||
|
polyLayer.removeOverlay(cs_choose_arr.value[0]);
|
||||||
|
map.removeGeoJSONLayer(polyLayer);
|
||||||
cs_choose_arr.value[0].points.forEach((item, index) => {
|
cs_choose_arr.value[0].points.forEach((item, index) => {
|
||||||
let arr1 = [];
|
let arr1 = [];
|
||||||
arr1.push(item?.latLng.lng);
|
arr1.push(item?.latLng.lng);
|
||||||
|
@ -1026,8 +1028,7 @@ const moveSave = () => {
|
||||||
arrJWD[0][0].push(arr1);
|
arrJWD[0][0].push(arr1);
|
||||||
});
|
});
|
||||||
console.log("arrJWD", arrJWD);
|
console.log("arrJWD", arrJWD);
|
||||||
polyLayer.removeOverlay(cs_choose_arr.value[0]);
|
|
||||||
map.removeGeoJSONLayer(polyLayer);
|
|
||||||
moveDK();
|
moveDK();
|
||||||
};
|
};
|
||||||
//退出移动模式
|
//退出移动模式
|
||||||
|
@ -1035,7 +1036,7 @@ const moveBack = () => {
|
||||||
// select.close();
|
// select.close();
|
||||||
movepoy.close();
|
movepoy.close();
|
||||||
sceneMove.removeEventListener(OperateEventType.CLICK, clickHandler);
|
sceneMove.removeEventListener(OperateEventType.CLICK, clickHandler);
|
||||||
polyLayer.removeOverlay(cs_choose_arr.value[0]);
|
polyLayer.removeOverlay(cs_choose_arr.value[0]);
|
||||||
map.removeGeoJSONLayer(polyLayer);
|
map.removeGeoJSONLayer(polyLayer);
|
||||||
cs_choose_arr.value.forEach((item, index) => {
|
cs_choose_arr.value.forEach((item, index) => {
|
||||||
map.removeOverlay(cs_choose_arr.value[index]);
|
map.removeOverlay(cs_choose_arr.value[index]);
|
||||||
|
@ -1135,7 +1136,6 @@ const closeEdit = async () => {
|
||||||
});
|
});
|
||||||
addCsChoose();
|
addCsChoose();
|
||||||
edit_mode.value = false;
|
edit_mode.value = false;
|
||||||
drawing.value = false;
|
|
||||||
// let a = document.documentElement.getElementsByClassName("left")[0];
|
// let a = document.documentElement.getElementsByClassName("left")[0];
|
||||||
// a.style.opacity = "1";
|
// a.style.opacity = "1";
|
||||||
// let b = document.documentElement.getElementsByClassName("right")[0];
|
// let b = document.documentElement.getElementsByClassName("right")[0];
|
||||||
|
|
Loading…
Reference in New Issue