Skip to content

Commit d4cdc48

Browse files
author
Dave Conway-Jones
committed
hide default online layer options if we aren't online
1 parent 9b7fa84 commit d4cdc48

File tree

5 files changed

+168
-156
lines changed

5 files changed

+168
-156
lines changed

CHANGELOG.md

+1
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,6 @@
11
### Change Log for Node-RED Worldmap
22

3+
- v2.12.1 - Only show online layer options if we are online.
34
- v2.12.0 - Add live rainfall radar data layer. Remove some non-loading overlays.
45
- v2.11.2 - Allow thicknesss of arc to be specified by weight
56
- v2.11.1 - Better handle KML point info - add popup.

README.md

+8-2
Original file line numberDiff line numberDiff line change
@@ -11,6 +11,7 @@ map web page for plotting "things" on.
1111

1212
### Updates
1313

14+
- v2.12.1 - Only show online layer options if we are online.
1415
- v2.12.0 - Add live rainfall radar data layer. Remove some non-loading overlays.
1516
- v2.11.2 - Allow thicknesss of arc to be specified by weight
1617
- v2.11.1 - Better handle KML point info - add popup.
@@ -562,10 +563,13 @@ Again the boolean `fit` property can be added to make the map zoom to the releva
562563
"overlay": "myWind",
563564
"velocity": {
564565
"displayValues": true,
565-
"displayOptions": {
566+
"displayOptions": {
566567
"velocityType": "Global Wind",
567568
"displayPosition": "bottomleft",
568-
"displayEmptyString": "No wind data"
569+
"emptyString": "No wind data",
570+
"showCardinal": true,
571+
"speedUnit": "k/h",
572+
"angleConvention": "meteoCCW"
569573
},
570574
"maxVelocity": 15,
571575
"data": [Array of data as per format referenced below]
@@ -574,6 +578,8 @@ Again the boolean `fit` property can be added to make the map zoom to the releva
574578

575579
see https://github.com/danwild/leaflet-velocity for more details about options and data examples.
576580

581+
Note: If you use his wind-js-server you need to patch it as per [issue 9](https://github.com/danwild/wind-js-server/issues/9).
582+
577583
#### To add an Image Overlay
578584

579585
in a function node:

package.json

+1-1
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
{
22
"name": "node-red-contrib-web-worldmap",
3-
"version": "2.12.0",
3+
"version": "2.12.1",
44
"description": "A Node-RED node to provide a web page of a world map for plotting things on.",
55
"dependencies": {
66
"cgi": "0.3.1",

worldmap/leaflet/leaflet-velocity.min.js

+1-1
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

0 commit comments

Comments
 (0)