The Web SDK v1 will be supported until March 31, 2026 only. Please migrate to v2 for new features and improvements, and continued support.
Adding Heatmap Layer in map
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.
Add your cluster data in this format.
Example