Skip to content

FullScreenControl

Usecase

  • Present the map in full screen for demos or dashboards.
  • Improve focus on the map by hiding surrounding layout when needed.

Props

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

and

PropDescriptionTypeRequiredDefault Value
typebody,mapfalsebody

Events

Slots

NameDescription
defaultid:string

Usage

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

<template>
  <Map>
    <FullScreenControl />
  </Map>
</template>