ソースを参照

fix: own location marker is plain orange dot without border/ring when logged in

neyrogovnarik 1 ヶ月 前
コミット
e6df1bb361
1 ファイル変更3 行追加1 行削除
  1. 3 1
      frontend/src/lib/map.ts

+ 3 - 1
frontend/src/lib/map.ts

@@ -35,7 +35,9 @@ function createIcon(type: string, size: number, ghost?: boolean, color?: string)
   if (type === 'location') {
     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%`
-      : `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)`
+      : 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)`
     const s = ghost ? 10 : 20
     return L.divIcon({
       className: '',