diff --git a/frontend/react/src/constants/constants.ts b/frontend/react/src/constants/constants.ts index cfda3ea7..ad9ba46b 100644 --- a/frontend/react/src/constants/constants.ts +++ b/frontend/react/src/constants/constants.ts @@ -406,6 +406,7 @@ export const MAP_OPTIONS_DEFAULTS: MapOptions = { showUnitLabels: true, showUnitsEngagementRings: true, showUnitsAcquisitionRings: true, + showUnitsTemporaryEngagementRings: true, showRacetracks: true, fillSelectedRing: false, showMinimap: false, diff --git a/frontend/react/src/types/types.ts b/frontend/react/src/types/types.ts index 8e9a57e5..8171da15 100644 --- a/frontend/react/src/types/types.ts +++ b/frontend/react/src/types/types.ts @@ -18,6 +18,7 @@ export type MapOptions = { showUnitLabels: boolean; showUnitsEngagementRings: boolean; showUnitsAcquisitionRings: boolean; + showUnitsTemporaryEngagementRings: boolean; showRacetracks: boolean; fillSelectedRing: boolean; showMinimap: boolean; diff --git a/frontend/react/src/ui/panels/optionsmenu.tsx b/frontend/react/src/ui/panels/optionsmenu.tsx index 98fec5b0..cfbf631a 100644 --- a/frontend/react/src/ui/panels/optionsmenu.tsx +++ b/frontend/react/src/ui/panels/optionsmenu.tsx @@ -160,6 +160,17 @@ export function OptionsMenu(props: { open: boolean; onClose: () => void; childre {}}> Show detection rings +
getApp().getMap().setOption("showUnitsTemporaryEngagementRings", !mapOptions.showUnitsTemporaryEngagementRings)} + > + {}}> + Show temporary engagement rings +
0) { this.#temporaryEngagementCircle.setLatLng(this.getPosition()); this.#temporaryEngagementCircle.setRadius(this.#engagementRange);