diff --git a/CHANGELOG.md b/CHANGELOG.md index 39db6a4..aad51e5 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -1,5 +1,6 @@ ### Change Log for Node-RED Worldmap + - v2.33.3 - Undo previous fix as while more technically correct - doesn't look so good. Issue #217 - v2.31.2 = Fix more antimeridian crossing wrinkles. Issue #216 - v2.31.1 - Fix missing type property for drawings, and pass back feedback value. Add route distance. Issue #213, Issue #212, PR #215 - v2.31.0 - Better handling of KML files. Issue #211 diff --git a/README.md b/README.md index 7a778b1..0951bfe 100644 --- a/README.md +++ b/README.md @@ -11,6 +11,7 @@ map web page for plotting "things" on. ### Updates +- v2.33.3 - Undo previous fix as while more technically correct - doesn't look so good. Issue #217 - v2.31.2 = Fix more antimeridian crossing wrinkles. Issue #216 - v2.31.1 - Fix missing type property for drawings, and pass back feedback value. Add route distance. Issue #213, Issue #212, PR #215 - v2.31.0 - Better handling of KML files. Issue #211 diff --git a/package.json b/package.json index 547405c..30ca1e9 100644 --- a/package.json +++ b/package.json @@ -1,6 +1,6 @@ { "name": "node-red-contrib-web-worldmap", - "version": "2.31.2", + "version": "2.31.3", "description": "A Node-RED node to provide a web page of a world map for plotting things on.", "dependencies": { "@turf/bezier-spline": "~6.5.0", diff --git a/worldmap/worldmap.js b/worldmap/worldmap.js index 7fb84bd..162d39f 100644 --- a/worldmap/worldmap.js +++ b/worldmap/worldmap.js @@ -1475,11 +1475,7 @@ function setMarker(data) { if (!data.hasOwnProperty("weight")) { opt.weight = 3; } //Standard settings different for lines if (!data.hasOwnProperty("opacity")) { opt.opacity = 0.8; } var greatc = L.Polyline.Arc(data.greatcircle[0], data.greatcircle[1], opt); - var gcp = greatc._latlngs.map(function(x) { - if (x.lng > 180) { x.lng -= 360; } - return x; - }); - var aml = new L.Wrapped.Polyline(gcp, opt); + var aml = new L.Wrapped.Polyline(greatc._latlngs, opt); polygons[data.name] = rightmenu(aml); if (data.hasOwnProperty("fit") && data.fit === true) {