fixed use icon pin in assets

This commit is contained in:
Warunee Tamkoo 2026-05-01 10:50:13 +07:00
parent 4d821b0ab6
commit ac18c0f932
5 changed files with 16 additions and 5 deletions

View file

@ -13,6 +13,8 @@ import axios from 'axios'
import { useCounterMixin } from '@/stores/mixin'
import { useQuasar } from 'quasar'
import { usePrivacyStore } from '@/stores/privacy'
import markerRedUrl from '@/assets/markers/marker-red.svg?url'
import markerBlueUrl from '@/assets/markers/marker-blue.svg?url'
const mixin = useCounterMixin()
const { messageError } = mixin
@ -275,7 +277,7 @@ async function initializeMap() {
const userPoint = new Point({ longitude, latitude })
const userSymbol = {
type: 'picture-marker',
url: 'http://maps.google.com/mapfiles/ms/icons/red.png',
url: markerRedUrl,
width: '32px',
height: '32px',
}
@ -315,7 +317,7 @@ async function initializeMap() {
// })
// const poiSymbol = {
// type: 'picture-marker',
// url: 'http://maps.google.com/mapfiles/ms/icons/blue.png',
// url: markerBlueUrl,
// width: '32px',
// height: '32px',
// }
@ -371,7 +373,7 @@ async function initializeMap() {
})
const poiSymbol = {
type: 'picture-marker',
url: 'http://maps.google.com/mapfiles/ms/icons/blue.png',
url: markerBlueUrl,
width: '32px',
height: '32px',
}