Fix addtoheatmap - to close #192

This commit is contained in:
Dave Conway-Jones 2021-12-21 17:22:23 +00:00
parent fac1876000
commit 5010c596a2
No known key found for this signature in database
GPG Key ID: 88BA2B8A411BE9FF
3 changed files with 3 additions and 1 deletions

View File

@ -1,5 +1,6 @@
### Change Log for Node-RED Worldmap ### Change Log for Node-RED Worldmap
- v2.23.5 - Fix addtoheatmap. Issue #192
- v2.23.4 - Fix opacity of area borders - v2.23.4 - Fix opacity of area borders
- v2.23.3 - Fix initial load of maps - v2.23.3 - Fix initial load of maps
- v2.23.2 - Add convex-hull example - v2.23.2 - Add convex-hull example

View File

@ -11,6 +11,7 @@ map web page for plotting "things" on.
### Updates ### Updates
- v2.23.5 - Fix addtoheatmap. Issue #192
- v2.23.4 - Fix opacity of area borders - v2.23.4 - Fix opacity of area borders
- v2.23.3 - Fix initial load of maps - v2.23.3 - Fix initial load of maps
- v2.23.2 - Add convex-hull example - v2.23.2 - Add convex-hull example

View File

@ -1997,7 +1997,7 @@ function setMarker(data) {
fb.action = "click"; fb.action = "click";
ws.send(JSON.stringify(fb)); 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); } if (heatAll || map.hasLayer(layers[lay])) { heat.addLatLng(lli); }
} }
markers[data.name] = marker; markers[data.name] = marker;