From 5010c596a2b64f6e697b3d7b04495de79cef7ad2 Mon Sep 17 00:00:00 2001 From: Dave Conway-Jones Date: Tue, 21 Dec 2021 17:22:23 +0000 Subject: [PATCH] Fix addtoheatmap - to close #192 --- CHANGELOG.md | 1 + README.md | 1 + worldmap/worldmap.js | 2 +- 3 files changed, 3 insertions(+), 1 deletion(-) diff --git a/CHANGELOG.md b/CHANGELOG.md index 16bb580..ef35405 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -1,5 +1,6 @@ ### Change Log for Node-RED Worldmap + - v2.23.5 - Fix addtoheatmap. Issue #192 - v2.23.4 - Fix opacity of area borders - v2.23.3 - Fix initial load of maps - v2.23.2 - Add convex-hull example diff --git a/README.md b/README.md index 3a50c3f..ac8df68 100644 --- a/README.md +++ b/README.md @@ -11,6 +11,7 @@ map web page for plotting "things" on. ### Updates +- v2.23.5 - Fix addtoheatmap. Issue #192 - v2.23.4 - Fix opacity of area borders - v2.23.3 - Fix initial load of maps - v2.23.2 - Add convex-hull example diff --git a/worldmap/worldmap.js b/worldmap/worldmap.js index 2979511..e8ba5fe 100644 --- a/worldmap/worldmap.js +++ b/worldmap/worldmap.js @@ -1997,7 +1997,7 @@ function setMarker(data) { fb.action = "click"; ws.send(JSON.stringify(fb)); }); - if (heat && ((data.addtoheatmap !== "false") || (!data.hasOwnProperty("addtoheatmap")))) { // Added to give ability to control if points from active layer contribute to heatmap + if (heat && ((data.addtoheatmap != false) || (!data.hasOwnProperty("addtoheatmap")))) { // Added to give ability to control if points from active layer contribute to heatmap if (heatAll || map.hasLayer(layers[lay])) { heat.addLatLng(lli); } } markers[data.name] = marker;