Skip to content

GotoControl

Usecase

  • Jump to specific coordinates or saved places via UI.
  • Enable quick navigation between bookmarks in analytic dashboards.

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, GotoControl } from '@hungpvq/vue-map-core';
import '@hungpvq/vue-map/style.css';
</script>

<template>
  <Map>
    <GotoControl />
  </Map>
</template>