This commit is contained in:
duanxiaohai 2024-08-02 10:56:29 +08:00
parent 3e9df64a4c
commit 5ec79aad31
1 changed files with 1 additions and 2 deletions

View File

@ -1727,7 +1727,7 @@ const addggfwq = () => {
data.fwqCoordinates2.push(item.point[1]);
createCustomOverlay(item, index);
});
console.log("经纬度", data.fwqCoordinates1, data.fwqCoordinates2);
// console.log("", data.fwqCoordinates1, data.fwqCoordinates2);
function calculateAverage(coordinates) {
// const numericCoordinates = coordinates.map(Number); //
const numericCoordinates = coordinates.map((coord) => {
@ -1740,7 +1740,6 @@ const addggfwq = () => {
return parseFloat(average.toFixed(5)); // 5
}
data.fwqCoordinates1 = calculateAverage(data.fwqCoordinates1);
data.fwqCoordinates2 = calculateAverage(data.fwqCoordinates2);
drawACircle();
} else {