diff --git a/client/src/components/flightplan/FlightPlan.tsx b/client/src/components/flightplan/FlightPlan.tsx index ff5e36d3..103fa84c 100644 --- a/client/src/components/flightplan/FlightPlan.tsx +++ b/client/src/components/flightplan/FlightPlan.tsx @@ -46,7 +46,12 @@ function FlightPlanPath(props: FlightPlanProps) { // behind everything than was added before them. Anything added after always // goes on top. useEffect(() => { - polylineRef.current?.bringToBack(); + if (props.selected) { + polylineRef.current?.bringToFront(); + } + else { + polylineRef.current?.bringToBack(); + } }); if (waypoints == null) {