Undo previous fix. Not so nice looking

to Close #217
This commit is contained in:
Dave Conway-Jones 2022-12-01 12:48:16 +00:00
parent d6d2359016
commit efc5d49f41
No known key found for this signature in database
GPG Key ID: 88BA2B8A411BE9FF
4 changed files with 4 additions and 6 deletions

View File

@ -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

View File

@ -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

View File

@ -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",

View File

@ -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) {