Infrastructure medium complexity backendfrontend
0
Dependencies
0
Dependents
0
Entities
0
Integrations

Description

Infrastructure component that manages integration with an external map tile service to supply the base map layer rendered by the UI. It abstracts tile URL construction, API key management, and caching strategy so that the rest of the system is decoupled from the specific tile provider vendor. Configuration allows switching between providers without changes to application code.

Feature: Peer Mentor Map

map-tile-provider

Sources & reasoning

Lines 99 and 359 directly name geographic map view as a Blindeforbundet need and place it in Fase 3. Fase 3 maps to v1.1 by ordinal position. The blueprint confirms this area at v1.1 phase.

  • docs/source/likeperson.md · line 99
    Geografisk kartvisning av likepersoner for matching og oppdragstildeling (særlig store fylker).
  • docs/source/likeperson.md · line 359
    Geografisk kartvisning (Blindeforbundet)

Responsibilities

  • Construct authenticated tile URL templates for the configured map provider
  • Manage API key storage and rotation for the tile service
  • Cache tile responses to reduce external API calls and improve performance
  • Expose provider configuration to the UI map rendering layer
  • Monitor tile service availability and surface degraded-mode fallbacks

Interfaces

getTileUrlTemplate(style: MapStyle): string
getProviderConfig(): MapProviderConfig
validateApiKey(): boolean
clearTileCache(): void