From 08bdd515a9433ccd07addfa38608875c87a07e92 Mon Sep 17 00:00:00 2001 From: zh <972939975@qq.com> Date: Fri, 15 Aug 2025 10:16:05 +0800 Subject: [PATCH] =?UTF-8?q?=E8=A7=A3=E5=86=B3=E9=9B=86=E7=BB=93=E5=9C=B0?= =?UTF-8?q?=E7=82=B9=E4=BD=8D=E7=BB=8F=E5=BA=A6=E8=B6=8A=E8=BF=87180=C2=B0?= =?UTF-8?q?=E6=97=B6=E8=AE=A1=E7=AE=97=E9=94=99=E8=AF=AF=E7=9A=84=E9=97=AE?= =?UTF-8?q?=E9=A2=98?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/Draw/drawAssemble.js | 2 +- src/Tools/index.js | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/src/Draw/drawAssemble.js b/src/Draw/drawAssemble.js index 6cc8605..6c7a9f8 100644 --- a/src/Draw/drawAssemble.js +++ b/src/Draw/drawAssemble.js @@ -124,7 +124,7 @@ class DrawAssemble extends Draw { if (this.points_ids.length === 1) { let pnts = new Array(); this.positions.forEach((item) => { - if(item.lng<=0) { + if(item.lng<-90) { item.lng += 360 } pnts.push([item.lng, item.lat]); diff --git a/src/Tools/index.js b/src/Tools/index.js index 1156611..1e75b1c 100644 --- a/src/Tools/index.js +++ b/src/Tools/index.js @@ -503,7 +503,7 @@ class Tools { let points = positions.length; let pnts = new Array(); positions.forEach((item) => { - if(item.lng<=0) { + if(item.lng<-90) { item.lng += 360 } pnts.push([item.lng, item.lat]);