Tidy up for 1.5.30

This commit is contained in:
Dave Conway-Jones 2019-03-11 17:33:53 +00:00
parent a2bdd32364
commit baeb62427e
No known key found for this signature in database
GPG Key ID: 9E7F9C73F5168CD4
4 changed files with 11 additions and 9 deletions

View File

@ -1,5 +1,6 @@
### Change Log for Node-RED Worldmap
- v1.5.30 - Add tooltip option, ability to remove base layer, search on icon, show mouse pointer co-ordinates
- v1.5.29 - remove lat/lon from popup if using .popup property. Allow icon to be loaded from http.
- v1.5.28 - Tidy up popup location and timing. Auto add countries overlay if no internet.
- v1.5.27 - Add hide right click option to config panel

View File

@ -9,6 +9,7 @@ map web page for plotting "things" on.
### Updates
- v1.5.30 - Add .tooltip option, ability to remove base layer, search on icon, show mouse pointer co-ordinates
- v1.5.29 - Remove lat/lon from popup if using .popup property. Allow icon to be loaded from http.
- v1.5.28 - Tidy up popup location and timing. Auto add countries overlay if no internet.
- v1.5.27 - Add hide right click option to config panel
@ -284,7 +285,11 @@ Optional properties include
#### To switch layer, move map and zoom
msg.payload.command = { "layer":"Esri Satellite", "lat":51, "lon":3, "zoom":10 };
msg.payload = { "command": { "layer":"Esri Satellite", "lat":51, "lon":3, "zoom":10 }};
You can also use the name "none" to completely remove the base layer,
msg.payload = { "command": { "layer":"none" }};
#### To add and remove a user defined button
@ -323,10 +328,6 @@ style server by adding a property `wms: true`. (see overlay example below)
"opt":{ "maxZoom":19, "attribution":"© OpenStreetMap" }
};
Note: you can use the name "none" to completely remove the base layer for example.
msg.payload = {"command":{"layer":"none"}};
#### To add a WMS overlay layer - eg US weather radar
To add an overlay instead of a base layer - specify the `overlay` property instead of the `name`.
@ -405,10 +406,10 @@ in a function node:
overlay: "New York Historical",
url: 'https://www.lib.utexas.edu/maps/historical/newark_nj_1922.jpg',
bounds: imageBounds,
opt: { opacity:1.0, attribution:"© University of Texas" }
opt: { opacity:0.8, attribution:"© University of Texas" }
};
#### To clear a layer from the map
#### To clear all markers from a layer, or an overlay from the map
msg.payload.command.clear = "name of your layer/overlay to remove";

View File

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

View File

@ -1,5 +1,5 @@
CACHE MANIFEST
# date: Mar 2nd 2019 - v1.5.29d
# date: Mar 2nd 2019 - v1.5.30
CACHE:
index.html