|
@@ -11,7 +11,7 @@ export interface MapBounds {
|
|
|
}
|
|
}
|
|
|
|
|
|
|
|
export interface MarkerOptions {
|
|
export interface MarkerOptions {
|
|
|
- type?: 'place' | 'studio' | 'visitor' | 'location'
|
|
|
|
|
|
|
+ type?: 'place' | 'studio' | 'visitor' | 'visitor_registered' | 'location'
|
|
|
title?: string
|
|
title?: string
|
|
|
onClick?: () => void
|
|
onClick?: () => void
|
|
|
ghost?: boolean
|
|
ghost?: boolean
|
|
@@ -22,6 +22,7 @@ const MARKER_COLORS: Record<string, string> = {
|
|
|
place: '#3b82f6',
|
|
place: '#3b82f6',
|
|
|
studio: '#a855f7',
|
|
studio: '#a855f7',
|
|
|
visitor: '#22c55e',
|
|
visitor: '#22c55e',
|
|
|
|
|
+ visitor_registered: '#FF4907',
|
|
|
location: '#3b82f6',
|
|
location: '#3b82f6',
|
|
|
}
|
|
}
|
|
|
|
|
|
|
@@ -120,7 +121,7 @@ export function createLeafletMapProvider(): MapProvider {
|
|
|
if (!map) return
|
|
if (!map) return
|
|
|
const ghost = options?.ghost
|
|
const ghost = options?.ghost
|
|
|
const type = options?.type || 'place'
|
|
const type = options?.type || 'place'
|
|
|
- const size = type === 'visitor' || type === 'location' ? 12 : 32
|
|
|
|
|
|
|
+ const size = type === 'visitor' || type === 'visitor_registered' || type === 'location' ? 12 : 32
|
|
|
const icon = createIcon(type, size, ghost)
|
|
const icon = createIcon(type, size, ghost)
|
|
|
const interactive = !ghost
|
|
const interactive = !ghost
|
|
|
const marker = L.marker([lat, lng], { icon, interactive }).addTo(map)
|
|
const marker = L.marker([lat, lng], { icon, interactive }).addTo(map)
|