View Interactive Map of Peer Mentor Locations
The coordinator opens the Map View Screen, which renders peer mentor home-area centroids (municipality or postal code level) as clustered pins on an OpenStreetMap base map. Each pin is colour-coded to reflect the mentor's current availability status using the unified entity colour system. Dense areas are automatically clustered and expand on tap. The map loads only mentors within the coordinator's organisation scope, enforced by Supabase row-level security policies.
User Story
Acceptance Criteria
- Given I am authenticated as a coordinator, when I navigate to the map view, then the map renders within 3 seconds with all peer mentor location pins visible for my organisational scope
- Given the map has loaded, when I zoom or pan the map, then pins reposition fluidly and clustered groups split into individual pins at sufficient zoom levels
- Given I have no peer mentors with stored location consent, when I open the map, then an empty-state message explains that no location data is available and prompts me to ensure mentors have opted in
- Given the map is open, when I zoom into a clustered area, then individual mentor pins become visible with distinct colour coding matching their availability status
Business Value
Eliminates the error-prone mental mapping of postal codes that coordinators currently perform manually. Particularly critical in large Norwegian counties where Blindeforbundet operates, where geographic proximity directly affects volunteer travel burden and assignment acceptance rates. Provides an immediate visual overview that reduces coordinator cognitive load and speeds up matching decisions.
Components
- Map View Screen ui
- Location Pin Widget ui
- Geographic Matching Service service
- Location Repository data
- Maps API Integration infrastructure