Fix loading of maps

pull/197/head
Dave Conway-Jones 3 years ago
parent cd2576b16d
commit 5048d111e1
No known key found for this signature in database
GPG Key ID: 88BA2B8A411BE9FF

@ -1,5 +1,6 @@
### Change Log for Node-RED Worldmap ### Change Log for Node-RED Worldmap
- v2.23.3 - Fix initial laod of maps
- v2.23.2 - Add convex-hull example - v2.23.2 - Add convex-hull example
- v2.23.1 - Fix saving of custom map layer - v2.23.1 - Fix saving of custom map layer
- v2.23.0 - Give logo and id so it can be overridden by toplogo command. PR #188. - v2.23.0 - Give logo and id so it can be overridden by toplogo command. PR #188.

@ -11,6 +11,7 @@ map web page for plotting "things" on.
### Updates ### Updates
- v2.23.3 - Fix initial laod of maps
- v2.23.2 - Add convex-hull example - v2.23.2 - Add convex-hull example
- v2.23.1 - Fix saving of custom map layer - v2.23.1 - Fix saving of custom map layer
- v2.23.0 - Give logo and id so it can be overridden by toplogo command. PR #188. - v2.23.0 - Give logo and id so it can be overridden by toplogo command. PR #188.

@ -1,6 +1,6 @@
{ {
"name": "node-red-contrib-web-worldmap", "name": "node-red-contrib-web-worldmap",
"version": "2.23.2", "version": "2.23.3",
"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": {
"@turf/bezier-spline": "~6.5.0", "@turf/bezier-spline": "~6.5.0",

@ -2062,9 +2062,11 @@ function setMarker(data) {
function doCommand(cmd) { function doCommand(cmd) {
// console.log("COMMAND",cmd); // console.log("COMMAND",cmd);
if (cmd.init && cmd.hasOwnProperty("maplist")) { if (cmd.init && cmd.hasOwnProperty("maplist")) {
basemaps = [];
addBaseMaps(cmd.maplist,cmd.layer); addBaseMaps(cmd.maplist,cmd.layer);
} }
if (cmd.init && cmd.hasOwnProperty("overlist")) { if (cmd.init && cmd.hasOwnProperty("overlist")) {
overlays = [];
addOverlays(cmd.overlist); addOverlays(cmd.overlist);
} }
if (cmd.hasOwnProperty("toptitle")) { if (cmd.hasOwnProperty("toptitle")) {

Loading…
Cancel
Save