This commit is contained in:
duanxiaohai 2024-08-20 14:15:47 +08:00
commit 59c1c4df02
1 changed files with 21 additions and 16 deletions

View File

@ -805,25 +805,31 @@ const initMap = () => {
addJd(); addJd();
}; };
const getCssj = () => { const getCssj = () => {
http.get("/api/ggfwyth/regionalDivision/getCsRegionalDivision").then((res) => { http
.get("/api/ggfwyth/regionalDivision/getCsRegionalDivision")
.then((res) => {
if (res.code == 200) { if (res.code == 200) {
cssj = JSON.parse(res.data); cssj = JSON.parse(res.data);
} }
}); });
} };
var arrJWD = [[[]]]; var arrJWD = [[[]]];
var arr1;
var iii;
//bd09bd09 //bd09bd09
const bd09 = async (x, y) => { const bd09 = async (x, y, index) => {
iii=index;
var ggPoint = new BMapGL.Point(x, y); var ggPoint = new BMapGL.Point(x, y);
var pointArr = []; var pointArr = [];
pointArr.push(ggPoint); pointArr.push(ggPoint);
var convertor = new BMapGL.Convertor(); var convertor = new BMapGL.Convertor();
convertor.translate(pointArr, COORDINATES_BD09_MC, COORDINATES_BD09, (e) => { convertor.translate(pointArr, COORDINATES_BD09_MC, COORDINATES_BD09, (e) => {
let arr1 = []; arr1 = [];
arr1.push(e.points[0].lng); arr1.push(e.points[0].lng);
arr1.push(e.points[0].lat); arr1.push(e.points[0].lat);
console.log('arr1',arr1); console.log("arr1", arr1);
arr1.push(iii);
arrJWD[0][0].push(arr1); arrJWD[0][0].push(arr1);
}); });
}; };
@ -832,7 +838,6 @@ const bd09 = async (x, y) => {
const openEdit = () => { const openEdit = () => {
cs_choose_arr.value[0].enableEditing(); cs_choose_arr.value[0].enableEditing();
console.log(cs_choose_arr.value[0]); console.log(cs_choose_arr.value[0]);
// bd09(13274780.785348017,3334646.4713317254);
}; };
// //