轨迹回放
This commit is contained in:
@ -198,32 +198,23 @@ const saveUsers = (users) => {
|
|||||||
listQuery.value.yjRyxm = users[0].yjRyxm;
|
listQuery.value.yjRyxm = users[0].yjRyxm;
|
||||||
listQuery.value.yjRysfzh = users[0].yjRysfzh;
|
listQuery.value.yjRysfzh = users[0].yjRysfzh;
|
||||||
qcckPost({ yjRysfzh: listQuery.value.yjRysfzh }, '/mosty-jcz/tbJczYjxx/getPageList').then((res) => {
|
qcckPost({ yjRysfzh: listQuery.value.yjRysfzh }, '/mosty-jcz/tbJczYjxx/getPageList').then((res) => {
|
||||||
for (let i = 0; i < res.records.length; i++) {
|
let list = res.records.map((item) => {
|
||||||
const item = res.records[i];
|
return [item.jd, item.wd]
|
||||||
emitter.emit("addPointArea", {
|
})
|
||||||
coords: [{ jd: item.jd, wd: item.wd }],
|
let obj = { coords: [list], text: '', id: '2222' }
|
||||||
icon: require("@/assets/point/zsdw.png"),
|
console.log(obj, 'obj');
|
||||||
flag: "yjry_gj"
|
emitter.emit("echoLine", {
|
||||||
});
|
flag: `yjry_gj`,
|
||||||
}
|
type: "solid",
|
||||||
// let list = res.records.map((item) => {
|
coords: [obj], // 保持使用第一个数据点进行测试
|
||||||
// return [item.jd, item.wd]
|
isclear:true
|
||||||
// })
|
});
|
||||||
// let obj = { position: list, text: '', id: '2222' }
|
emitter.emit("setMapCenter", { location: [res.records[0].jd, res.records[0].wd], zoomLevel: 10 });
|
||||||
// console.log(obj, 'obj');
|
emitter.emit("addPointArea", {
|
||||||
// emitter.emit("echoPlane", {
|
coords: [{ jd: res.records[0].jd, wd: res.records[0].wd }],
|
||||||
// flag: `yjry_gj`,
|
icon: require("@/assets/point/zsdw.png"),
|
||||||
// type: "polygon",
|
flag: "jczMap_Gzy"
|
||||||
// coords: [obj], // 保持使用第一个数据点进行测试
|
});
|
||||||
// fontSize: "20px",
|
|
||||||
// fontColor: '#000',
|
|
||||||
// });
|
|
||||||
// emitter.emit("setMapCenter", { location: [res.records[0].jd, res.records[0].wd], zoomLevel: 10 });
|
|
||||||
// emitter.emit("addPointArea", {
|
|
||||||
// coords: [{ jd: res.records[0].jd, wd: res.records[0].wd }],
|
|
||||||
// icon: require("@/assets/point/zsdw.png"),
|
|
||||||
// flag: "jczMap_Gzy"
|
|
||||||
// });
|
|
||||||
});
|
});
|
||||||
|
|
||||||
};
|
};
|
||||||
|
|||||||
@ -85,7 +85,7 @@ const getjczgetJczList = () => {
|
|||||||
});
|
});
|
||||||
};
|
};
|
||||||
const makerCenter = () => {
|
const makerCenter = () => {
|
||||||
const dw = require("@/assets/point/dingwei.png")
|
const dw = require("@/assets/point/dingwei.png")
|
||||||
const coords = centralPoint.map(item => {
|
const coords = centralPoint.map(item => {
|
||||||
return { jd: item.point[0], wd: item.point[1], jzMc: item.name }
|
return { jd: item.point[0], wd: item.point[1], jzMc: item.name }
|
||||||
})
|
})
|
||||||
@ -209,11 +209,11 @@ const getMapData = () => {
|
|||||||
pyl: arrowhead[key].pyl,
|
pyl: arrowhead[key].pyl,
|
||||||
})
|
})
|
||||||
}
|
}
|
||||||
console.log(jtData,'jtData');
|
console.log(jtData, 'jtData');
|
||||||
|
|
||||||
// 修复后的多边形绘制代码
|
// 修复后的多边形绘制代码
|
||||||
for (let i = 0; i < jtData.length; i++) {
|
for (let i = 0; i < jtData.length; i++) {
|
||||||
console.log(jtData[i],'jtData[i]');
|
console.log(jtData[i], 'jtData[i]');
|
||||||
|
|
||||||
console.log("正在绘制第", i, "个多边形");
|
console.log("正在绘制第", i, "个多边形");
|
||||||
emitter.emit("echoPlane", {
|
emitter.emit("echoPlane", {
|
||||||
@ -315,6 +315,4 @@ const getMapData = () => {
|
|||||||
box-sizing: border-box;
|
box-sizing: border-box;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
</style>
|
</style>
|
||||||
|
|||||||
Reference in New Issue
Block a user