refactor(map): replace tooltip with popup for better interaction
All checks were successful
Build & Deploy on Dev / build (push) Successful in 2m31s
All checks were successful
Build & Deploy on Dev / build (push) Successful in 2m31s
This commit is contained in:
parent
b83251f914
commit
41c1aa8e45
1 changed files with 5 additions and 10 deletions
|
|
@ -26,7 +26,9 @@ const apiKey = ref<string>(
|
||||||
// 'AAPK4f700a4324d04e9f8a1a134e0771ac45FXWawdCl-OotFfr52gz9XKxTDJTpDzw_YYcwbmKDDyAJswf14FoPyw0qBkN64DvP'
|
// 'AAPK4f700a4324d04e9f8a1a134e0771ac45FXWawdCl-OotFfr52gz9XKxTDJTpDzw_YYcwbmKDDyAJswf14FoPyw0qBkN64DvP'
|
||||||
)
|
)
|
||||||
const zoomMap = ref<number>(18)
|
const zoomMap = ref<number>(18)
|
||||||
const textTooltip = ref<string>('พื้นที่ใกล้เคียง: สถานที่สำคัญรอบตัวคุณ (ไม่ใช่ตำแหน่งปัจจุบัน)')
|
const textTooltip = ref<string>(
|
||||||
|
'พื้นที่ใกล้เคียง: สถานที่สำคัญรอบตัวคุณ (ไม่ใช่ตำแหน่งปัจจุบัน)'
|
||||||
|
)
|
||||||
|
|
||||||
async function initializeMap() {
|
async function initializeMap() {
|
||||||
try {
|
try {
|
||||||
|
|
@ -334,17 +336,10 @@ defineExpose({
|
||||||
<q-icon
|
<q-icon
|
||||||
name="mdi-information-outline"
|
name="mdi-information-outline"
|
||||||
size="xs"
|
size="xs"
|
||||||
class="q-mr-xs"
|
class="q-mr-xs cursor-pointer"
|
||||||
@click.stop
|
@click.stop="$q.dialog({ message: textTooltip, ok: 'ปิด' })"
|
||||||
/>
|
/>
|
||||||
</q-item-label>
|
</q-item-label>
|
||||||
<q-tooltip
|
|
||||||
anchor="top middle"
|
|
||||||
self="bottom middle"
|
|
||||||
:offset="[0, 5]"
|
|
||||||
>
|
|
||||||
{{ textTooltip }}
|
|
||||||
</q-tooltip>
|
|
||||||
<q-item-label class="text-weight-medium text-grey-9">
|
<q-item-label class="text-weight-medium text-grey-9">
|
||||||
{{ poiPlaceName }}
|
{{ poiPlaceName }}
|
||||||
</q-item-label>
|
</q-item-label>
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue