Skip to content

Commit a00a954

Browse files
committed
feat: enhance popup display with v-card and formatted coordinates in HexbinDemo10k
1 parent feb9c5a commit a00a954

File tree

1 file changed

+8
-2
lines changed

1 file changed

+8
-2
lines changed

docs/src/views/HexbinDemo10k.vue

Lines changed: 8 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -19,8 +19,14 @@
1919
>
2020
<template #popup="{ data, layer, event, latLng }">
2121
<LPopup>
22-
<p>Count: {{ data?.length }}</p>
23-
<p>Coords: {{ latLng?.lat }}, {{ latLng?.lng }}</p>
22+
<v-card flat>
23+
<p>Count: {{ data?.length }}</p>
24+
<p>
25+
Coords:
26+
<v-chip class="mx-1" size="small">{{ latLng?.lat.toFixed(4) }}</v-chip>
27+
<v-chip class="mx-1" size="small">{{ latLng?.lng.toFixed(4) }}</v-chip>
28+
</p>
29+
</v-card>
2430
</LPopup>
2531
</template>
2632
<template #tooltip="{ data, layer, event }">

0 commit comments

Comments
 (0)