diff --git a/src/app/student/map/_components/BoothMarker.tsx b/src/app/student/map/_components/BoothMarker.tsx index 6516592..225caee 100644 --- a/src/app/student/map/_components/BoothMarker.tsx +++ b/src/app/student/map/_components/BoothMarker.tsx @@ -11,7 +11,9 @@ export function BoothMarker({ booth, scale }: { booth: Booth; scale: number }) { key={booth.id} longitude={booth.center[0]} latitude={booth.center[1]}> -
+
{logoSrc ? (
clearTimeout(timeout) }, [location]) @@ -162,8 +161,10 @@ export function MapComponent({ function onZoomChange() { const zoom = mapRef.current?.getZoom() if (zoom === undefined) return - const scale = Math.max(0.2, Math.min(1, 1 + (zoom - 20) * 0.5)) - setMarkerScale(scale) + + if (zoom < 18.5) setMarkerScale(0.2) + else if (zoom < 20.5) setMarkerScale(0.5) + else setMarkerScale(1.0) } return ( diff --git a/src/app/student/map/editor/EditorMapComponent.tsx b/src/app/student/map/editor/EditorMapComponent.tsx index 4a665c7..9c19140 100644 --- a/src/app/student/map/editor/EditorMapComponent.tsx +++ b/src/app/student/map/editor/EditorMapComponent.tsx @@ -212,7 +212,6 @@ export default function EditorMapComponent({ [18.079, 59.35] ]} mapStyle="https://api.maptiler.com/maps/376fa556-c405-4a91-8e9e-15be82eb3a58/style.json?key=mgMcr2yF2fWUHzf27ygv"> - {/** Order sensitive! */}