node-red-contrib-web-worldmap 2.27.2 → 2.27.3

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/CHANGELOG.md CHANGED
@@ -1,6 +1,6 @@
1
1
  ### Change Log for Node-RED Worldmap
2
2
 
3
- - v2.27.2 - Try to handle greatcircles crossing antimeridian
3
+ - v2.27.3 - Try to handle greatcircles crossing antimeridian
4
4
  - v2.27.1 - Reload existing markers for late joiners
5
5
  - v2.26.1 - Add QTH/Maidenhead option also
6
6
  - v2.26.0 - Add UTM and MGRS to coordinate display options.
package/README.md CHANGED
@@ -11,7 +11,7 @@ map web page for plotting "things" on.
11
11
 
12
12
  ### Updates
13
13
 
14
- - v2.27.2 - Try to handle greatcircles crossing antimeridian
14
+ - v2.27.3 - Try to handle greatcircles crossing antimeridian
15
15
  - v2.27.1 - Reload existing markers for late joiners
16
16
  - v2.26.1 - Add QTH/Maidenhead option also
17
17
  - v2.26.0 - Add UTM and MGRS to coordinate display options.
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "node-red-contrib-web-worldmap",
3
- "version": "2.27.2",
3
+ "version": "2.27.3",
4
4
  "description": "A Node-RED node to provide a web page of a world map for plotting things on.",
5
5
  "dependencies": {
6
6
  "@turf/bezier-spline": "~6.5.0",
@@ -1441,12 +1441,10 @@ function setMarker(data) {
1441
1441
  }
1442
1442
  if (data.hasOwnProperty("greatcircle") && Array.isArray(data.greatcircle) && data.greatcircle.length === 2) {
1443
1443
  delete opt.fill;
1444
- //opt.vertices = opt.vertices || 100;
1444
+ opt.vertices = opt.vertices || 20;
1445
1445
  if (!data.hasOwnProperty("weight")) { opt.weight = 3; } //Standard settings different for lines
1446
1446
  if (!data.hasOwnProperty("opacity")) { opt.opacity = 0.8; }
1447
1447
  var greatc = L.Polyline.Arc(data.greatcircle[0], data.greatcircle[1], opt);
1448
- // // opt.smoothFactor= 1;
1449
- // // opt.noWrap = true;
1450
1448
  var aml = new L.Wrapped.Polyline(greatc._latlngs, opt);
1451
1449
 
1452
1450
  polygons[data.name] = rightmenu(aml);