Skip to content

control

Stable

Places your own HEEx content in a corner of the map as a control.

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 add the control to
position string "top-right" Control position: "top-left", "top-right", "bottom-left", "bottom-right". Defaults to "top-right". A new value moves the control to that corner
class string "" Additional CSS classes to apply to the control container (and to the element that holds the slot). A new value applies to both at once
global attributes global — Any other HTML attribute, passed on to the component's element.

Slots

  • inner_block Required.