let weight specify arc thickness

to close #161
This commit is contained in:
Dave Conway-Jones 2021-03-24 17:45:39 +00:00
parent 3b1f5767a7
commit 3dfa46ecc1
No known key found for this signature in database
GPG Key ID: 88BA2B8A411BE9FF
4 changed files with 6 additions and 3 deletions

View File

@ -1,5 +1,6 @@
### Change Log for Node-RED Worldmap ### Change Log for Node-RED Worldmap
- v2.11.2 - allow thicknesss of arc to be specified by weight
- v2.11.1 - Better handle KML point info - add popup. - v2.11.1 - Better handle KML point info - add popup.
- v2.11.0 - Add option to smooth tracks using bezier curves. - v2.11.0 - Add option to smooth tracks using bezier curves.
- v2.10.0 - Save latest position to browser for refresh if in iframe/dashboard. Allow fractional Zoom levels. - v2.10.0 - Save latest position to browser for refresh if in iframe/dashboard. Allow fractional Zoom levels.

View File

@ -11,6 +11,7 @@ map web page for plotting "things" on.
### Updates ### Updates
- v2.11.2 - allow thicknesss of arc to be specified by weight
- v2.11.1 - Better handle KML point info - add popup. - v2.11.1 - Better handle KML point info - add popup.
- v2.11.0 - Add option to smooth tracks using bezier curves. - v2.11.0 - Add option to smooth tracks using bezier curves.
- v2.10.0 - Save latest position to browser for refresh if in iframe/dashboard. Allow fractional Zoom levels. - v2.10.0 - Save latest position to browser for refresh if in iframe/dashboard. Allow fractional Zoom levels.
@ -180,7 +181,8 @@ msg.payload = { name:"Camera01", icon:"fa-camera", lat:51.05, lon:-1.35,
ranges: [500,1000,2000], ranges: [500,1000,2000],
pan: 228, pan: 228,
fov: 40, fov: 40,
color: '#aaaa00' color: '#aaaa00',
weight: 1
} }
} }
``` ```

View File

@ -1,6 +1,6 @@
{ {
"name": "node-red-contrib-web-worldmap", "name": "node-red-contrib-web-worldmap",
"version": "2.11.1", "version": "2.11.2",
"description": "A Node-RED node to provide a web page of a world map for plotting things on.", "description": "A Node-RED node to provide a web page of a world map for plotting things on.",
"dependencies": { "dependencies": {
"cgi": "0.3.1", "cgi": "0.3.1",

View File

@ -1191,7 +1191,7 @@ var rangerings = function(latlng, options) {
radius: options.ranges[i], radius: options.ranges[i],
fill: false, fill: false,
color: options.color, color: options.color,
weight: 1 weight: options.weight || 1
}).setDirection(options.pan, options.fov).addTo(rings); }).setDirection(options.pan, options.fov).addTo(rings);
} }
return rings; return rings;