AssignmentMapOverlayWidget
Component Detail
Description
A map overlay widget that renders open assignment locations alongside peer mentor positions on the coordinator map view. It provides proximity-based filtering controls and eligibility indicators so coordinators can visually identify the best-fit peer mentor without leaving the map context. Selecting a peer mentor from the overlay initiates the dispatch workflow directly.
assignment-map-overlay-widget
Sources & reasoning
The phrase "matching og oppdragstildeling" (matching and assignment dispatch) at line 99 directly motivates a dedicated assignment-matching capability layered on top of the base map. Fase 3 placement at line 359 maps to v1.1 by ordinal. Depends on peer-mentor-map and encrypted-assignment-dispatch both being enabled.
-
docs/source/likeperson.md · line 99Geografisk kartvisning av likepersoner for matching og oppdragstildeling (særlig store fylker).
-
docs/source/likeperson.md · line 359Geografisk kartvisning (Blindeforbundet)
Responsibilities
- Render open assignment markers and peer mentor position markers on a shared map layer
- Display proximity rings and distance labels between assignments and available mentors
- Apply eligibility filters (certification status, active status, capacity) to mentor markers
- Highlight the closest eligible mentor and surface a dispatch action button
- Emit dispatch initiation events when the coordinator confirms a mentor selection
Interfaces
renderOverlay(assignments: AssignmentLocation[], mentors: MentorPosition[]): void
applyEligibilityFilter(criteria: EligibilityCriteria): void
onMentorSelected(callback: (mentorId: string, assignmentId: string) => void): void
clearOverlay(): void
Related Data Entities (2)
Data entities managed by this component