Skip to content

ModuleContainer

Package
vue-map
Category
Description
Module Container

Props

PropDescriptionTypeRequiredDefault Value
mapIdstringfasle--
dragIdstringfasle--
btnWidthNumberfasle40
position'top-left', 'top-right', 'bottom-left', 'bottom-right'fasle'bottom-right'
controlVisiblebooleanfasletrue
showCompassbooleanfasletrue
showZoombooleanfasletrue

Events

Slots

NameDescription
btn
draggableid:string

Usage

vue
<script setup lang="ts">
import { MapControlButton, ModuleContainer, withMapProps } from '@hungpvq/vue-map-core';
const props = defineProps({
  ...withMapProps,
});
const { moduleContainerProps } = useMap(props);
</script>
<template>
  <ModuleContainer v-bind="moduleContainerProps">
    <template #btn>
      <MapControlButton>
        <SvgIcon :size="18" type="mdi" :path="mdiHome" />
      </MapControlButton>
    </template>
    <slot />
  </ModuleContainer>
</template>