Skip to content

attribution_control

Stable

Shows the attribution of the map's sources.

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 control
map_id required string — ID of the map to attach to
position string "bottom-right" Position of the control. One of: ["top-left", "top-right", "bottom-left", "bottom-right"]. Defaults to "bottom-right". A new value moves the control to that corner
compact boolean true If true, displays attribution in compact mode (collapsed). Defaults to true. MapLibre reads it only when it creates the control, so a new value replaces the control with a new one, in the same place
custom_attribution string nil Additional custom attribution text to display (optional). A new value replaces the control, as compact does