Skip to content
Docs version
@hungpvq/vue-map@1.1.0@hungpvq/vue-map-core@1.1.0@hungpvq/vue-map-dataset@1.1.0@hungpvq/vue-map-draw@1.1.0@hungpvq/map-draw@1.1.0@hungpvq/react-map@1.1.0@hungpvq/react-map-core@1.1.0@hungpvq/react-map-dataset@1.1.0@hungpvq/react-map-draw@1.1.0

Identify Show First Control

On map click, identifies the first hit and runs the identify resolver (default: show-detail / attribute-table when available). No toolbar button. Needs identify nodes on the dataset (see Identify).

Props

PropDescriptionTypeRequiredDefault Value
mapIdstringfalse--
dragIdstringfalse--
btnWidthnumberfalse40
controlOrderCSS flex order for the standalone buttonnumberfalse0
position'top-left', 'top-right', 'bottom-left', 'bottom-right'false'bottom-right'
controlLayout'standalone' (corner), 'toolbar' (always in toolbar), 'button' (always corner; not auto-promoted on mobile)'standalone' | 'toolbar' | 'button'false'standalone'
controlVisiblebooleanfalsetrue

Map also accepts buttonInMobile ('button' | 'toolbar' | 'menu', default 'button'). On viewports ≤640px:

  • 'button' — leave corner buttons unchanged
  • 'toolbar' — move declared control buttons into a single ToolbarControl host (except controlLayout="button"). Mount one ToolbarControl in the map slot
  • 'menu' — hide per-control corner buttons; fan out intact clusters by position into corner stacks with outside-in More. Mount one ToolbarControl.

See ToolbarControl.

PropTypeDefaultEffect
preferResultControlbooleanfalseUse Identify Result panel instead of auto detail/table (requires IdentifyControl / result panel on the map)

Events: none.

Vue

vue
<script setup lang="ts">
import { Map } from '@hungpvq/vue-map-core';
import {
  IdentifyShowFirstControl,
  ComponentManagementControl,
} from '@hungpvq/vue-map-dataset';
</script>

<template>
  <Map>
    <IdentifyShowFirstControl />
    <ComponentManagementControl />
  </Map>
</template>

Prefer result panel:

vue
<IdentifyControl position="top-right" prefer-result-control />
<!-- or with ShowFirst + IdentifyControl mounted together -->

React

tsx
<IdentifyShowFirstControl />
<ComponentManagementControl />