Fix loading of maps

This commit is contained in:
Dave Conway-Jones 2021-12-17 22:56:58 +00:00
parent cd2576b16d
commit 5048d111e1
No known key found for this signature in database
GPG Key ID: 88BA2B8A411BE9FF
4 changed files with 5 additions and 1 deletions

View File

@ -1,5 +1,6 @@
### Change Log for Node-RED Worldmap
- v2.23.3 - Fix initial laod of maps
- v2.23.2 - Add convex-hull example
- 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.

View File

@ -11,6 +11,7 @@ map web page for plotting "things" on.
### Updates
- v2.23.3 - Fix initial laod of maps
- v2.23.2 - Add convex-hull example
- 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.

View File

@ -1,6 +1,6 @@
{
"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.",
"dependencies": {
"@turf/bezier-spline": "~6.5.0",

View File

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