From d0c779b66e65ed3a97c93328ddcc991438cad5f3 Mon Sep 17 00:00:00 2001 From: PxlLoewe <72106766+PxlLoewe@users.noreply.github.com> Date: Mon, 14 Apr 2025 19:05:11 -0700 Subject: [PATCH] added close aircraft button --- .../_components/map/AircraftMarker.tsx | 16 ++++++++++++++-- grafana/grafana.db | Bin 1122304 -> 1122304 bytes 2 files changed, 14 insertions(+), 2 deletions(-) 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], + }); + }} + > + +
+
owWr8%L@I)DBM&XSK-*njo<;0ksIj1*n<`kYTV8zAJT&~w%uEz+(OhC*G z#4JF}3dC$c%)Y%`k3)=+hbR5-<^~1^21QE_mg)WW9AYdWf$5v|Ih0ss(*N#xu>F=k z$7z06K^bOS#_13BIV9Q-*>eCf=k`PPT-E_BK-Iik85x-cwzDkY`a7SWt(Jk4bs8i8 zGJaoPU)E{c1su5BSh-4AI2brARZWe9r+@U}*5EVIH8c$|Ftjo>vof)WntsrSTT&Jz zrT`PuGcz}|FfuVSFx56Nure^1&f~^i$im*hP}<(;#tpowWr8##*F+g-My`zs-*njo&qP0AkMVhwQnm16Y8ndABk$G7D^HS-|yoK0kW{11B2~ zBmXjfUtV9f+U)`k+-