From a6684578daab43a7c01e6c30c3bf292f8865c7e3 Mon Sep 17 00:00:00 2001 From: Meag Harty <149533950+meagharty@users.noreply.github.com> Date: Tue, 6 Aug 2024 15:10:41 -0400 Subject: [PATCH] fix: fix markerIcon size on mobile sizes by adding iconSize and iconAnchor --- assets/src/components/StopViewMap.tsx | 2 ++ 1 file changed, 2 insertions(+) diff --git a/assets/src/components/StopViewMap.tsx b/assets/src/components/StopViewMap.tsx index edc9e64c..a4eca9e1 100644 --- a/assets/src/components/StopViewMap.tsx +++ b/assets/src/components/StopViewMap.tsx @@ -15,6 +15,8 @@ const markerIcon = icon({ iconUrl: "/images/marker-icon.png", iconRetinaUrl: "/images/marker-icon-2x.png", shadowUrl: "/images/marker-shadow.png", + iconSize: [25, 41], + iconAnchor: [12, 41], }) const StopViewMap = ({ stop }: { stop?: Stop }) => {