From 8e55051410e0396b6d3dafa77b4a1ca4269c73e0 Mon Sep 17 00:00:00 2001 From: Pax1601 Date: Tue, 25 Mar 2025 09:58:37 +0100 Subject: [PATCH] fix: Unit targets not being shown --- frontend/react/src/constants/constants.ts | 2 +- frontend/react/src/ui/panels/optionsmenu.tsx | 11 +++++++++++ frontend/react/src/unit/unit.ts | 2 +- 3 files changed, 13 insertions(+), 2 deletions(-) diff --git a/frontend/react/src/constants/constants.ts b/frontend/react/src/constants/constants.ts index cce7171a..7e6675c8 100644 --- a/frontend/react/src/constants/constants.ts +++ b/frontend/react/src/constants/constants.ts @@ -402,7 +402,7 @@ export const MAP_OPTIONS_DEFAULTS: MapOptions = { hideUnitsShortRangeRings: true, showUnitContacts: true, showUnitPaths: true, - showUnitTargets: false, + showUnitTargets: true, showUnitLabels: true, showUnitsEngagementRings: true, showUnitsAcquisitionRings: true, diff --git a/frontend/react/src/ui/panels/optionsmenu.tsx b/frontend/react/src/ui/panels/optionsmenu.tsx index f33f11ab..fdc732f1 100644 --- a/frontend/react/src/ui/panels/optionsmenu.tsx +++ b/frontend/react/src/ui/panels/optionsmenu.tsx @@ -155,6 +155,17 @@ export function OptionsMenu(props: { open: boolean; onClose: () => void; childre {}}> Show detection lines +
getApp().getMap().setOption("showUnitTargets", !mapOptions.showUnitTargets)} + > + {}}> + Show unit targets +