Heatmap layer weight (heatmap helper)
This example shows how to add a heatmap layer into a map by utilizing a property as the weight. To accomplish this, the heatmap layer helper is employed. If you wish to access the earthquake sample data.
Incorporating a property as the weight MUST be paired with a ramping description. By configuring these options, earthquakes with magnitudes close to zero will be displayed with reduced intensity, while earthquakes with magnitudes of 6 or higher will be portrayed at their maximum intensity.
Related examples
An extension of MapLibre GL JS