This commit is contained in:
duanxiaohai 2024-07-30 09:39:38 +08:00
parent 86e7eafdf5
commit cc71e8daf5
2 changed files with 3 additions and 5 deletions

BIN
dist.zip Normal file

Binary file not shown.

View File

@ -443,19 +443,18 @@ const BMAP = () => {
// //
var circle; var circle;
const drawACircle = (v) => { const drawACircle = (v) => {
console.log(data.fwqCoordinates); console.log("经纬度",data.fwqCoordinates1, data.fwqCoordinates2,data.fwqCoordinates);
// forEach; // forEach;
if (!circle) { if (!circle) {
var point = new BMapGL.Point(data.fwqCoordinates1, data.fwqCoordinates2); var point = new BMapGL.Point(data.fwqCoordinates1, data.fwqCoordinates2);
circle = new BMapGL.Circle(point, 1000, { circle = new BMapGL.Circle(point, 1000, {
strokeColor: "yellow", strokeColor: "yellow",
strokeWeight: 2, strokeWeight: 2,
strokeOpacity: 0.8, strokeOpacity: 0.8,
fillOpacity: 0.1, fillOpacity: 0.1,
// fillColor: "yellow",
strokeStyle: "dashed", strokeStyle: "dashed",
zIndex: 99, zIndex: 99,
// fillColor: "yellow",
}); });
map.addOverlay(circle); map.addOverlay(circle);
} }
@ -1253,8 +1252,7 @@ const DGcreateCs2 = (polygon, indexx) => {
const addggfwq = () => { const addggfwq = () => {
if (fwqList.value) { if (fwqList.value) {
data.fwqCoordinates1 = []; data.fwqCoordinates1 = [];
data.fwqCoordinates1 = []; data.fwqCoordinates2 = [];
// console.log(fwqList.value,444);
fwqList.value.map((item, index) => { fwqList.value.map((item, index) => {
data.fwqCoordinates1.push(item.point[0]); data.fwqCoordinates1.push(item.point[0]);
data.fwqCoordinates2.push(item.point[1]); data.fwqCoordinates2.push(item.point[1]);