Bug Report - Ground Unit/Weapon Highlighting
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
- Open the map view in the application.
- Select or interact with a ground unit or weapon (e.g. AA system, tank, artillery).
- 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.ktapp/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.
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.