Skip to content

video_source

Stable

Places a video at four coordinates for a raster layer to draw.

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 source
map_id required string — ID of the map to attach to
urls required list — Array of video URLs (provide multiple formats for browser compatibility)
coordinates required list — Array of 4 coordinates [lng, lat] defining the corners in clockwise order: [top-left, top-right, bottom-right, bottom-left]
events any [] a list of event names, or :all