From baeb62427ed32d8246762c2f6a11094328c396e7 Mon Sep 17 00:00:00 2001 From: Dave Conway-Jones Date: Mon, 11 Mar 2019 17:33:53 +0000 Subject: [PATCH] Tidy up for 1.5.30 --- CHANGELOG.md | 1 + README.md | 15 ++++++++------- package.json | 2 +- worldmap/worldmap.appcache | 2 +- 4 files changed, 11 insertions(+), 9 deletions(-) diff --git a/CHANGELOG.md b/CHANGELOG.md index 973091c..206187d 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -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 diff --git a/README.md b/README.md index 628ff0a..4c31102 100644 --- a/README.md +++ b/README.md @@ -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"; diff --git a/package.json b/package.json index ff56bb0..9ab39a0 100644 --- a/package.json +++ b/package.json @@ -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", diff --git a/worldmap/worldmap.appcache b/worldmap/worldmap.appcache index 24f8a83..e66c8a5 100644 --- a/worldmap/worldmap.appcache +++ b/worldmap/worldmap.appcache @@ -1,5 +1,5 @@ CACHE MANIFEST -# date: Mar 2nd 2019 - v1.5.29d +# date: Mar 2nd 2019 - v1.5.30 CACHE: index.html