Polygon layer (polygon helper)

This example shows the process of incorporating a layer of polygons onto the map by utilizing the polygon layer helper and its default settings. Download the Swiss sample data.

In this particular case, the color is assigned at random from a predetermined list of colors. This is the default behavior taken when a specific color is not designated.



Related examples

An extension of MapLibre GL JS