|
|
@@ -33,11 +33,11 @@ function createIcon(type: string, size: number, ghost?: boolean, color?: string)
|
|
|
: MARKER_COLORS[type] || '#3b82f6')
|
|
|
|
|
|
if (type === 'location') {
|
|
|
+ const r = parseInt(bg.slice(1, 3), 16), g = parseInt(bg.slice(3, 5), 16), b = parseInt(bg.slice(5, 7), 16)
|
|
|
+ const ringColor = isNaN(r) ? 'rgba(59,130,246,0.3)' : `rgba(${r},${g},${b},0.3)`
|
|
|
const locStyle = ghost
|
|
|
? `width:10px;height:10px;background:radial-gradient(circle, rgba(255, 238, 0, 1) 0%, rgba(255, 238, 0, 0) 75%);border-radius:50%`
|
|
|
- : color
|
|
|
- ? `width:14px;height:14px;background:${color};border-radius:50%`
|
|
|
- : `width:12px;height:12px;background:${bg};border-radius:50%;border:3px solid white;box-shadow:0 0 0 4px rgba(59,130,246,0.3)`
|
|
|
+ : `width:12px;height:12px;background:${bg};border-radius:50%;border:3px solid white;box-shadow:0 0 0 4px ${ringColor}`
|
|
|
const s = ghost ? 10 : 20
|
|
|
return L.divIcon({
|
|
|
className: '',
|