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]);