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