Fix loading of maps
This commit is contained in:
parent
cd2576b16d
commit
5048d111e1
@ -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…
Reference in New Issue
Block a user