diff --git a/apps/dispatch/app/(dispatch)/_components/map/AircraftMarker.tsx b/apps/dispatch/app/(dispatch)/_components/map/AircraftMarker.tsx index c13db02e..db852d4c 100644 --- a/apps/dispatch/app/(dispatch)/_components/map/AircraftMarker.tsx +++ b/apps/dispatch/app/(dispatch)/_components/map/AircraftMarker.tsx @@ -4,7 +4,7 @@ import { DivIcon, Marker as LMarker, Popup as LPopup } from "leaflet"; import { useMapStore } from "_store/mapStore"; import { Fragment, useCallback, useEffect, useRef, useState } from "react"; import { cn } from "helpers/cn"; -import { House, Route } from "lucide-react"; +import { Cross, House, Minimize2, Route } from "lucide-react"; export const FMS_STATUS_COLORS: { [key: string]: string } = { "0": "rgb(126,0,5)", @@ -241,7 +241,19 @@ const AircraftLabel = ({ aircraft }: { aircraft: Aircraft }) => { anchor.includes("left") && "-translate-x-1/2", anchor.includes("top") && "-translate-y-1/2", )} - > + /> +
{ + setOpenAircraftMarker({ + open: [], + close: [aircraft.id], + }); + }} + > + +
+