From eec0ca44c00211a40860a1cd9d17191916a9c508 Mon Sep 17 00:00:00 2001 From: zh <972939975@qq.com> Date: Fri, 15 Aug 2025 10:00:38 +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 | 3 +++ src/Tools/index.js | 3 +++ 2 files changed, 6 insertions(+) diff --git a/src/Draw/drawAssemble.js b/src/Draw/drawAssemble.js index 8f1a321..6cc8605 100644 --- a/src/Draw/drawAssemble.js +++ b/src/Draw/drawAssemble.js @@ -124,6 +124,9 @@ class DrawAssemble extends Draw { if (this.points_ids.length === 1) { let pnts = new Array(); this.positions.forEach((item) => { + if(item.lng<=0) { + item.lng += 360 + } pnts.push([item.lng, item.lat]); }); diff --git a/src/Tools/index.js b/src/Tools/index.js index 0674a47..1156611 100644 --- a/src/Tools/index.js +++ b/src/Tools/index.js @@ -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);