I am trying to implement an openlayers heatmap example below:
https://openlayers.org/en/latest/examples/heatmap-earthquakes.html
Instead of magnitude is it possible to show count (how many points are in the same area)?
I am trying to implement an openlayers heatmap example below:
https://openlayers.org/en/latest/examples/heatmap-earthquakes.html
Instead of magnitude is it possible to show count (how many points are in the same area)?
If you mean showing clustered features as a heatmap, it can be done. This is a combination of the Clustered Features example and the Heatmap example.
This version shows a normal cluster layer at zoom levels 0, 1 and 2 and a heatmap at zoom levels 3 or more
If you data is random you could find the current largest cluster size and use that when dividing to calculate the weight: