Skip to content

Control Bar

The Control Bar is a container component that organizes other controls in a group. It provides a consistent layout and positioning for map controls.

Usage

vue
<template>
  <ol-styled-control-bar>
    <ol-styled-zoom-in-control />
    <ol-styled-zoom-out-control />
    <ol-styled-full-screen-control />
  </ol-styled-control-bar>
</template>

Props

PropTypeDefaultDescription
positiontop-left | top-right | bottom-left | bottom-rightbottom-rightPosition of the control bar.
themedefault | dark | ocean | glassmorphismdefaulttheme

Examples

Basic Usage

vue
<template>
  <ol-map>
    <ol-styled-control-bar  theme="ocean">
      <ol-styled-zoom-controls />
      <ol-styled-full-screen-control />
    </ol-styled-control-bar>
  </ol-map>
</template>

Custom Position

vue
<template>
  <ol-map>
    <ol-styled-control-bar position="bottom-left">
      <ol-styled-zoom-controls />
      <ol-styled-full-screen-control />
    </ol-styled-control-bar>
  </ol-map>
</template>

Released under the MIT License.