解决集结地点位经度越过180°时计算错误的问题

This commit is contained in:
zh
2025-08-15 10:00:38 +08:00
parent 9f35d752c2
commit eec0ca44c0
2 changed files with 6 additions and 0 deletions

View File

@ -503,6 +503,9 @@ class Tools {
let points = positions.length;
let pnts = new Array();
positions.forEach((item) => {
if(item.lng<=0) {
item.lng += 360
}
pnts.push([item.lng, item.lat]);
});
//console.log("pnts6666",pnts);