This commit is contained in:
姚宇浩 2024-08-20 14:32:52 +08:00
parent d73a294967
commit aa24dc255a
1 changed files with 14 additions and 9 deletions

View File

@ -816,10 +816,8 @@ const getCssj = () => {
var arrJWD = [[[]]];
var arr1;
var iii;
//bd09bd09
const bd09 = async (x, y, index) => {
iii=index;
const bd09 = (x, y) => {
var ggPoint = new BMapGL.Point(x, y);
var pointArr = [];
pointArr.push(ggPoint);
@ -829,11 +827,9 @@ const bd09 = async (x, y, index) => {
arr1.push(e.points[0].lng);
arr1.push(e.points[0].lat);
console.log("arr1", arr1);
arr1.push(iii);
arrJWD[0][0].push(arr1);
});
};
//
const openEdit = () => {
cs_choose_arr.value[0].enableEditing();
@ -841,12 +837,21 @@ const openEdit = () => {
};
//
const closeEdit = () => {
const closeEdit = async () => {
cs_choose_arr.value[0].disableEditing();
console.log(cs_choose_arr.value[0]);
cs_choose_arr.value[0].points.forEach((item, index) => {
bd09(item.lng, item.lat, index);
});
for (const item of cs_choose_arr.value[0].points) {
if (item?.latLng) {
arr1 = [];
arr1.push(item?.latLng.lng);
arr1.push(item?.latLng.lat);
arrJWD[0][0].push(arr1);
} else {
bd09(item.lng, item.lat);
//0.1convertor.translate
await new Promise(resolve => setTimeout(resolve, 100));
}
}
console.log("arrJWD", arrJWD);
};
//