Skip to content

Commit ddac0fc

Browse files
committed
Fix clearlayer command in Tracks node
1 parent e3bd211 commit ddac0fc

File tree

5 files changed

+7
-25
lines changed

5 files changed

+7
-25
lines changed

CHANGELOG.md

+1
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,6 @@
11
### Change Log for Node-RED Worldmap
22

3+
- v5.1.3 - Fix clearlayer for tracks node.
34
- v5.1.2 - Fix for longer line msg properties.
45
- v5.1.1 - Fix CoT inline image.
56
- v5.1.0 - Let special icons be sizeable using iconSize property.

README.md

+2-21
Original file line numberDiff line numberDiff line change
@@ -13,6 +13,7 @@ Feel free to [![](https://img.shields.io/static/v1?label=Sponsor&message=%E2%9D%
1313

1414
### Updates
1515

16+
- v5.1.3 - Fix clearlayer for tracks node.
1617
- v5.1.2 - Fix for longer line msg properties.
1718
- v5.1.1 - Fix CoT inline image.
1819
- v5.1.0 - Let special icons be sizeable using iconSize property.
@@ -25,27 +26,7 @@ Feel free to [![](https://img.shields.io/static/v1?label=Sponsor&message=%E2%9D%
2526
- v5.0.2 - Fix sidcEdgeIcon docs PR#289.
2627
- v5.0.1 - Fix isArray error PR #288.
2728
- v5.0.0 - v5.0.0 - Feedback cleanup PR#281, edgeicons option PR#287, bump libs for vuln fixes.
28-
- v4.9.0 - If payload.flag is two char ISO code replace it with flag emoji. Revert part of PR #271
29-
- v4.8.1 - Slight tidy of some of the geojson handling
30-
- v4.8.0 - Merged PR for feedback functionality cleanup and example. PR #271 and #272
31-
- v4.7.0 - Update pmtiles library, fix feedback function inconsistency. Issue #270
32-
- v4.6.5 - Let geojson allow for generic overrides with .icon and .layer.
33-
- v4.6.4 - Fix deletion of layers logic to actually fully remove points.
34-
- v4.6.3 - Fix sending of layer events when not wanted. Issue #262
35-
- v4.6.2 - Fix multiple use of contextmenu feedback. Issue #259
36-
- v4.6.1 - Let default pmtiles be light/dark or monocolored.
37-
- v4.5.2 - Tidy up when pmtiles removed.
38-
- v4.5.0 - Fix pmtiles to look for maps in userdir rather than modules
39-
- v4.4.0 - Add quad(copter) drone icon.
40-
- v4.3.3 - Fix for objects changing layers.
41-
- v4.3.2 - Fix geojson popup missing label name.
42-
- v4.3.1 - Small fix to icon transparency, and routing detail.
43-
- v4.3.0 - Add support for PMtiles files.
44-
- v4.2.1 - Revert use of optional chaining to extend life slightly. Issue #252
45-
- v4.2.0 - Let icons also be inline images data:image...
46-
- v4.1.0 - Add optional SOG, COG, altft, altm input properties.
47-
- v4.0.0 - Breaking - Better context menu variable substitution and retention
48-
Now uses ${name} syntax rather than $name so we can handle user defined variables in context menus.
29+
4930

5031
- see [CHANGELOG](https://github.com/dceejay/RedMap/blob/master/CHANGELOG.md) for full list of changes.
5132

package.json

+1-1
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
{
22
"name": "node-red-contrib-web-worldmap",
3-
"version": "5.1.2",
3+
"version": "5.1.3",
44
"description": "A Node-RED node to provide a web page of a world map for plotting things on.",
55
"dependencies": {
66
"@turf/bezier-spline": "~7.2.0",

worldmap.js

+2-2
Original file line numberDiff line numberDiff line change
@@ -494,7 +494,7 @@ module.exports = function(RED) {
494494
}
495495
}
496496
if (msg.payload?.command?.clear) {
497-
if (!isArray(msg.payload?.command?.clear)) {
497+
if (!Array.isArray(msg.payload?.command?.clear)) {
498498
msg.payload.command.clear = [ msg.payload.command.clear ]
499499
}
500500
msg.payload.command.clear.forEach(function(el) {
@@ -508,7 +508,7 @@ module.exports = function(RED) {
508508
})
509509
}
510510
if (msg.payload?.command?.clearlayer) {
511-
if (!isArray(msg.payload?.command?.clearlayer)) {
511+
if (!Array.isArray(msg.payload?.command?.clearlayer)) {
512512
msg.payload.command.clearlayer = [ msg.payload.command.clearlayer ]
513513
}
514514
msg.payload.command.clearlayer.forEach(function(el) {

worldmap/worldmap.js

+1-1
Original file line numberDiff line numberDiff line change
@@ -18,7 +18,7 @@ var menuOpen = false;
1818
var clusterAt = 0;
1919
var maxage = 900; // default max age of icons on map in seconds - cleared after 15 mins
2020
var baselayername = "OSM grey"; // Default base layer OSM but uniform grey
21-
var pagefoot = " © DCJ 2023";
21+
var pagefoot = " © DCJ 2025";
2222
var inIframe = false;
2323
var showUserMenu = true;
2424
var showLayerMenu = true;

0 commit comments

Comments
 (0)