This commit is contained in:
parent
3e9df64a4c
commit
5ec79aad31
|
@ -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 {
|
||||
|
|
Loading…
Reference in New Issue