Skip to content

SettingControl

Usecase

  • Provide a quick settings panel for toggling map options (labels, 3D, style).
  • Group advanced controls inside a single menu to reduce UI clutter.

Props

PropDescriptionTypeRequiredDefault Value
mapIdstringfalse--
dragIdstringfalse--
btnWidthnumberfalse40
position'top-left', 'top-right', 'bottom-left', 'bottom-right'false'bottom-right'
controlVisiblebooleanfalsetrue

Events

Slots

NameDescription
defaultid:string

Usage

vue
<script setup lang="ts">
import { Map, SettingControl } from '@hungpvq/vue-map-core';
import '@hungpvq/vue-map/style.css';
</script>

<template>
  <Map>
    <SettingControl />
  </Map>
</template>