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