parent
d4fd1fdb7e
commit
010a9aad21
@ -1,5 +1,6 @@
|
|||||||
### Change Log for Node-RED Worldmap
|
### Change Log for Node-RED Worldmap
|
||||||
|
|
||||||
|
- v2.37.2 - If custom layer is only layer then show it automatically. Issue #230
|
||||||
- v2.37.1 - Warn (and drop) messages that are missing a payload. Issue #229
|
- v2.37.1 - Warn (and drop) messages that are missing a payload. Issue #229
|
||||||
- v2.37.0 - Allow fly instead of fit option when using command to move view window. (PR #225)
|
- v2.37.0 - Allow fly instead of fit option when using command to move view window. (PR #225)
|
||||||
- v2.36.0 - Add edge icons for SIDC markers just off the map.
|
- v2.36.0 - Add edge icons for SIDC markers just off the map.
|
||||||
|
@ -11,6 +11,7 @@ map web page for plotting "things" on.
|
|||||||
|
|
||||||
### Updates
|
### Updates
|
||||||
|
|
||||||
|
- v2.37.2 - If custom layer is only layer then show it automatically. Issue #230
|
||||||
- v2.37.1 - Warn (and drop) messages that are missing a payload. Issue #229
|
- v2.37.1 - Warn (and drop) messages that are missing a payload. Issue #229
|
||||||
- v2.37.0 - Allow fly instead of fit option when using command to move view window. (PR #225)
|
- v2.37.0 - Allow fly instead of fit option when using command to move view window. (PR #225)
|
||||||
- v2.36.0 - Add edge icons for SIDC markers just off the map.
|
- v2.36.0 - Add edge icons for SIDC markers just off the map.
|
||||||
|
@ -1,6 +1,6 @@
|
|||||||
{
|
{
|
||||||
"name": "node-red-contrib-web-worldmap",
|
"name": "node-red-contrib-web-worldmap",
|
||||||
"version": "2.37.1",
|
"version": "2.37.2",
|
||||||
"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",
|
||||||
|
@ -2388,6 +2388,11 @@ function doCommand(cmd) {
|
|||||||
if (!existsalready) {
|
if (!existsalready) {
|
||||||
layercontrol.addBaseLayer(basemaps[cmd.map.name],cmd.map.name);
|
layercontrol.addBaseLayer(basemaps[cmd.map.name],cmd.map.name);
|
||||||
}
|
}
|
||||||
|
// if new layer is only layer then show it.
|
||||||
|
if (Object.keys(basemaps).length === 1) {
|
||||||
|
baselayername = cmd.map.name;
|
||||||
|
basemaps[baselayername].addTo(map);
|
||||||
|
}
|
||||||
}
|
}
|
||||||
// Add or swap new minimap layer
|
// Add or swap new minimap layer
|
||||||
if (cmd.map && cmd.map.hasOwnProperty("minimap")) {
|
if (cmd.map && cmd.map.hasOwnProperty("minimap")) {
|
||||||
|
Loading…
Reference in New Issue
Block a user