aboutsummaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorAriel Costas Guerrero <ariel@costas.dev>2025-12-14 22:55:45 +0100
committerAriel Costas Guerrero <ariel@costas.dev>2025-12-14 22:55:45 +0100
commit4896f7fa801724d2a084e15d577b6617010ccbba (patch)
treec281becdf4a22d9dd4a2cbdb3868fbc4c2d41435 /src
parent5e9f1094a50bbcdd514e958dcd67d0f0a844589d (diff)
Undo change of mrker in StopMapModal
Diffstat (limited to 'src')
-rw-r--r--src/frontend/app/components/StopMapModal.tsx21
1 files changed, 17 insertions, 4 deletions
diff --git a/src/frontend/app/components/StopMapModal.tsx b/src/frontend/app/components/StopMapModal.tsx
index bddf512..1cb6d88 100644
--- a/src/frontend/app/components/StopMapModal.tsx
+++ b/src/frontend/app/components/StopMapModal.tsx
@@ -9,7 +9,6 @@ import React, {
import Map, { Layer, Marker, Source, type MapRef } from "react-map-gl/maplibre";
import { Sheet } from "react-modal-sheet";
import { useApp } from "~/AppContext";
-import LineIcon from "~/components/LineIcon";
import { REGION_DATA } from "~/config/RegionConfig";
import { getLineColour } from "~/data/LineColors";
import type { Stop } from "~/data/StopDataProvider";
@@ -518,12 +517,26 @@ export const StopMapModal: React.FC<StopMapModalProps> = ({
flexDirection: "column",
alignItems: "center",
gap: 6,
- filter: "drop-shadow(0 2px 4px rgba(0,0,0,0.3))",
- transform: "scale(0.85)",
+ transform: `rotate(${selectedBus.currentPosition.orientationDegrees}deg)`,
transformOrigin: "center center",
}}
>
- <LineIcon line={selectedBus.line} mode="rounded" />
+ <svg
+ width="24"
+ height="24"
+ viewBox="0 0 24 24"
+ style={{
+ filter: "drop-shadow(0 2px 4px rgba(0,0,0,0.3))",
+ }}
+ >
+ <path
+ d="M12 2 L22 22 L12 17 L2 22 Z"
+ fill={getLineColour(selectedBus.line).background}
+ stroke="#000"
+ strokeWidth="2"
+ strokeLinejoin="round"
+ />
+ </svg>
</div>
</Marker>
)}