# Map Cleanup Error Fix

## Issue
The user reported a `TypeError: Cannot read properties of undefined (reading 'getOwnLayer')` in `MapVisualizationService.clearUserLocationAccuracy`.
This occurs during component unmounting when the map instance might be in an invalid state (e.g., style not loaded or map already partially destroyed).

## Fix
Modified `apps/web/src/modules/map/services/MapVisualizationService.ts`:
1.  **`clearUserLocationAccuracy`**: Added a check `if (!this.map.getStyle()) return` to ensure the map has a valid style before attempting to access layers. Wrapped the layer removal logic in a `try-catch` block to safely handle any internal Mapbox errors during cleanup.
2.  **`cleanup`**: Wrapped the entire cleanup process in a `try-catch` block to prevent unmounting errors from crashing the app.

## Verification
1.  Navigate to the Map page.
2.  Navigate away from the Map page (triggering unmount).
3.  Check the console for errors. The reported `TypeError` should no longer appear.
