diff --git a/src/app/student/map/_components/MapComponent.tsx b/src/app/student/map/_components/MapComponent.tsx index a1ea468..32a50c5 100644 --- a/src/app/student/map/_components/MapComponent.tsx +++ b/src/app/student/map/_components/MapComponent.tsx @@ -26,7 +26,6 @@ import { symbolLayerStyle } from "../lib/config" import { BoothMarker } from "./BoothMarker" -// import debounce from "lodash.debounce" export function MapComponent({ boothsById, @@ -51,10 +50,6 @@ export function MapComponent({ const [markerScale, setMarkerScale] = useState(1) - // const debouncedSetHoveredBoothId = debounce(id => { - // setHoveredBoothId(id) - // }, 100) - // Fly to location center on change useEffect(() => { const { longitude, latitude, zoom } = location.center @@ -115,7 +110,7 @@ export function MapComponent({ } } - // avoid delays in booth switching + // Avoid delays in booth switching function onBoothMouseMove(e: MapLayerMouseEvent) { const feature = e.features?.[0] as GeoJsonBooth | undefined if (feature) {