InteractiveChecklists icon indicating copy to clipboard operation
InteractiveChecklists copied to clipboard

Bug Report - Ground Unit/Weapon Highlighting

Open arn-c0de opened this issue 10 months ago • 1 comments

Bug Description

The functionality responsible for highlighting ground units and weapons on the map is currently not working as intended.

When a user attempts to highlight these entities (e.g. by selection or interaction), the visual feedback (highlight effect) is missing or inconsistent.

This significantly impacts usability, especially during mission planning or tactical overview, as selected or target units are not clearly identifiable.

Steps to Reproduce

  1. Open the map view in the application.
  2. Select or interact with a ground unit or weapon (e.g. AA system, tank, artillery).
  3. Observe that the expected highlighting effect does not appear or renders incorrectly.

Expected Behavior

When a ground unit or weapon is selected or interacted with, a clear and consistent visual highlight should be shown to indicate its active or selected state.

Relevant Files (Potential Investigation Areas)

  • app/src/main/java/com/example/checklist_interactive/ui/maps/marker/MapMarkerPopup.kt
  • app/src/main/java/com/example/checklist_interactive/ui/maps/MapViewer.kt

Proposed Fix (High-Level)

Investigate and fix the highlighting logic in MapMarkerPopup.kt, MapViewer.kt, or related components.
Key areas to review:

  • Selection / interaction event handling
  • Highlight rendering logic (Paint, Canvas, styles)
  • Possible interference between map overlays or layers

A review of the ground unit and weapon marker rendering pipeline is required to restore consistent highlighting behavior.

arn-c0de avatar Jan 14 '26 10:01 arn-c0de

Fixed in Commit b96ddc8 — manual highlights are no longer overridden by auto‑highlight settings, and there’s now a "Clear All Highlights" option. ✅ Fix: TacticalUnitsViewModel.kt: Only set highlights when auto‑highlight is enabled; do not clear manual highlights.

arn-c0de avatar Jan 14 '26 17:01 arn-c0de