Layers & Sources
Style layers render data from a source with full control over how it looks, and they scale to datasets the annotation API cannot. Start with the source, then pick the layer that matches your geometry: symbol and circle for points, line for paths, fill for areas, heatmap and cluster for many points at once.
- Symbol Layer: icons and text labels from a source
- Circle Layer: circular points
- Fill Layer: polygons and filled areas
- Line Layer: polylines and paths
- Heatmap: point density as a heat surface
- Color Relief: terrain coloured by elevation from a raster DEM
- Background: a colour or pattern behind every other layer
- Cluster: cluster many points into grouped circles
- GeoJSON Source: feed layers from inline data or a URL
- Various Sources: GeoJSON, vector tiles, raster tiles, and more