Open documentation menu
Documentation menu
Developer guides
Ola Maps Web SDK v2 -
Adding Heatmap Layers
This documentation provides methods for adding heatmap layer in map.
Add a GeoJSON to map using addSource map method and style it using addLayer’s paint heatmaps properties.
JAVASCRIPT
Copy
Add your cluster data in this format.
JAVASCRIPT
Copy
Example
JAVASCRIPT
Copy