Skip to content

Layer Info Control

Read-only layer list (no create / delete / move). Same list data as LayerControl.

Props

PropDescriptionTypeRequiredDefault Value
mapIdstringfalse--
dragIdstringfalse--
btnWidthnumberfalse40
position'top-left', 'top-right', 'bottom-left', 'bottom-right'false'bottom-right'
controlVisiblebooleanfalsetrue
PropTypeDefaultEffect
showbooleanOpen the panel

Events: none.

Slots

NameVueReact
endListslot { mapId }not exposed
defaultextra children

Vue

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

<template>
  <Map>
    <LayerInfoControl position="bottom-right" show>
      <template #endList="{ mapId }">
        <BaseMapCard :mapId="mapId" />
      </template>
    </LayerInfoControl>
  </Map>
</template>

React

tsx
<LayerInfoControl position="bottom-right" show />