Point layer colored and sized according to a property (point helper)

This example illustrates the process of incorporating a point layer into a map, with the color and size of the points determined by the “mag” property, which represents the magnitude of earthquakes. To achieve this, we utilize the point layer helper. To access the sample data necessary for this exercise, please download the earthquake sample data.

In this particular case, we have opted to establish magnitude boundaries ranging between 1 and 5.



Related examples

An extension of MapLibre GL JS