GeoLocateControl 
Usecase 
- Center the map to the user location on mobile devices.
 - Provide a locate-me button for field survey or navigation workflows.
 
Props 
| Prop | Description | Type | Required | Default Value | 
|---|---|---|---|---|
mapId | string | false | -- | |
dragId | string | false | -- | |
btnWidth | number | false | 40 | |
position | 'top-left', 'top-right', 'bottom-left', 'bottom-right' | false | 'bottom-right' | |
controlVisible | boolean | false | true | 
Events 
Slots 
| Name | Description | 
|---|---|
default | id:string | 
Usage 
vue
<script setup lang="ts">
import { Map, GeoLocateControl } from '@hungpvq/vue-map-core';
import '@hungpvq/vue-map/style.css';
</script>
<template>
  <Map>
    <GeoLocateControl />
  </Map>
</template>