Skip to content

raster_layer

Stable

Shows raster tiles, an image or a video from a source.

Generated from the component's definition in the library, so it always matches the version this demo runs.

Attribute Type Default Description
id required string — Unique identifier for the layer
map_id required string — ID of the map to attach to
source_id required string — ID of the raster data source
paint map %{} Paint properties (raster-opacity, raster-hue-rotate, etc.)
layout map %{} Layout properties (visibility)
min_zoom integer nil Minimum zoom level for layer visibility
max_zoom integer nil Maximum zoom level for layer visibility
before_id string nil ID of layer to insert this layer before
events any [] a list of event names, or :all