Polygon color ramp symbol (polygon helper)

This example showcases the procedure of integrating a polygon layer that utilizes a color ramp symbol into a map. This allows for the alteration of the fill color based on the map’s zoom level. To achieve this, the polygon layer helper is employed. You can access the sample data by downloading the sample data of Switzerland.

Furthermore, in this example, we also modify the color of the polygon border depending on the zoom level of the map.

Related examples

An extension of MapLibre GL JS