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;