Fix addtoheatmap - to close #192

pull/197/head
Dave Conway-Jones 3 years ago
parent fac1876000
commit 5010c596a2
No known key found for this signature in database
GPG Key ID: 88BA2B8A411BE9FF

@ -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

@ -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

@ -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;

Loading…
Cancel
Save