Skip to content

image_source

Stable

Places an image 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
url required string — URL of the image
coordinates required list — Array of 4 coordinates [lng, lat] defining the corners in clockwise order starting from top-left: [top-left, top-right, bottom-right, bottom-left]
events any [] a list of event names, or :all