Skip to content

control_group

Stable

Groups several controls into one map 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 group
map_id required string — ID of the map to add the control group to
position string "top-right" Control position: "top-left", "top-right", "bottom-left", "bottom-right". Defaults to "top-right". A new value moves the group to that corner
orientation string "vertical" Layout orientation: "vertical" or "horizontal". Defaults to "vertical". With maplibrex.css, a horizontal group lays its buttons out in a row, separated on the left, and the buttons at the ends of the group take its rounded corners on their side (--maplibrex-control-radius sets them). A new value applies at once
class string "" Additional CSS classes to apply to the control group 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.