RedMap
RedMap copied to clipboard
Heatmap
Hi, 1 bug and 1 question related to heatmap.
-
(question) It seems that heatmap is only generated per session, so if I refresh the page, or open a new session the heatmap resets. Is this intended behaviour? If it is, I would request some mechanism to aggregate the heatmap server side.
-
(bug) If i turn on the heatmap layer, then turn it off again, the tracks disappear after next position update, even though they are in separate layers. After this initial cycling of the heatmap layer, the tracks will only show if heatmap is shown. The bug has to be cleared by refreshing the page.
- Yes it is as designed... Happy to look at a pull request if you want to add aggregation somehow.
- Not sure what you mean - do you have an example flow/screenshots ?
Added PR #203
Thanks - will have a look.
Well, I had the same issue but it is not too difficult to solve. The reason is that points in the heatmap are kept into the heatmap plugin. Fortunately, thanks to solving issue #218, it is now possible to keep the array of (lon,lat) yourself (in db, in session, etc.) and send it to heatmap for display. Of course, you have to keep/manage the array of positions yourself, but it is not too difficult. P.
Closing due to heatmap update that lets user replace complete heatmap array.