node-red-contrib-web-worldmap 2.26.0 → 2.26.1
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/package.json +1 -1
- package/worldmap/worldmap.js +2 -1
package/package.json
CHANGED
package/worldmap/worldmap.js
CHANGED
|
@@ -1439,7 +1439,7 @@ function setMarker(data) {
|
|
|
1439
1439
|
}
|
|
1440
1440
|
if (data.hasOwnProperty("greatcircle") && Array.isArray(data.greatcircle) && data.greatcircle.length === 2) {
|
|
1441
1441
|
delete opt.fill;
|
|
1442
|
-
opt.vertices = opt.vertices || 100;
|
|
1442
|
+
//opt.vertices = opt.vertices || 100;
|
|
1443
1443
|
if (!data.hasOwnProperty("weight")) { opt.weight = 3; } //Standard settings different for lines
|
|
1444
1444
|
if (!data.hasOwnProperty("opacity")) { opt.opacity = 0.8; }
|
|
1445
1445
|
var greatc = L.Polyline.Arc(data.greatcircle[0], data.greatcircle[1], opt);
|
|
@@ -1981,6 +1981,7 @@ function setMarker(data) {
|
|
|
1981
1981
|
if (data.hasOwnProperty("clickable")) { delete data.clickable; }
|
|
1982
1982
|
if (data.hasOwnProperty("fillColor")) { delete data.fillColor; }
|
|
1983
1983
|
if (data.hasOwnProperty("radius")) { delete data.radius; }
|
|
1984
|
+
if (data.hasOwnProperty("greatcircle")) { delete data.greatcircle; }
|
|
1984
1985
|
for (var i in data) {
|
|
1985
1986
|
if ((i != "name") && (i != "length")) {
|
|
1986
1987
|
if (typeof data[i] === "object") {
|