feat: Updated border of map markers to reflect category color. (#1062)

This commit is contained in:
jufy111
2026-05-28 06:54:41 +10:00
committed by GitHub
parent 0a8fb1f53b
commit 0d2657ee37
2 changed files with 2 additions and 2 deletions
+1 -1
View File
@@ -43,7 +43,7 @@ function createPlaceIcon(place, orderNumbers, isSelected) {
const cached = iconCache.get(cacheKey) const cached = iconCache.get(cacheKey)
if (cached) return cached if (cached) return cached
const size = isSelected ? 44 : 36 const size = isSelected ? 44 : 36
const borderColor = isSelected ? '#111827' : 'white' const borderColor = isSelected ? '#111827' : (place.category_color || 'white')
const borderWidth = isSelected ? 3 : 2.5 const borderWidth = isSelected ? 3 : 2.5
const shadow = isSelected const shadow = isSelected
? '0 0 0 3px rgba(17,24,39,0.25), 0 4px 14px rgba(0,0,0,0.3)' ? '0 0 0 3px rgba(17,24,39,0.25), 0 4px 14px rgba(0,0,0,0.3)'
+1 -1
View File
@@ -53,7 +53,7 @@ interface Props {
function createMarkerElement(place: Place & { category_color?: string; category_icon?: string }, photoUrl: string | null, orderNumbers: number[] | null, selected: boolean): HTMLDivElement { function createMarkerElement(place: Place & { category_color?: string; category_icon?: string }, photoUrl: string | null, orderNumbers: number[] | null, selected: boolean): HTMLDivElement {
const size = selected ? 44 : 36 const size = selected ? 44 : 36
const borderColor = selected ? '#111827' : 'white' const borderColor = selected ? '#111827' : (place.category_color || 'white')
const borderWidth = selected ? 3 : 2.5 const borderWidth = selected ? 3 : 2.5
const shadow = selected const shadow = selected
? '0 0 0 3px rgba(17,24,39,0.25), 0 4px 14px rgba(0,0,0,0.3)' ? '0 0 0 3px rgba(17,24,39,0.25), 0 4px 14px rgba(0,0,0,0.3)'