Skip to content

feat(map): implement interactive Leaflet weather map, proxy tile endpoints, and secure CSRF popup interactions - #42

Merged
podlLev merged 7 commits into
devfrom
feature/weather-map
Jul 31, 2026
Merged

podlLev merged 7 commits into
devfrom
feature/weather-map

Conversation

@podlLev

@podlLev podlLev commented Jul 31, 2026

Copy link
Copy Markdown
Owner

Overview

This PR introduces an interactive weather map module utilizing Leaflet.js and OpenWeatherMap tile layers. It proxies tile layer requests through backend REST endpoints to prevent client-side API key exposure, adds interactive map popups with secure CSRF-protected form submissions, and incorporates full internationalization (i18n) support for map overlays and controls.


Key Changes

  • Map Infrastructure & Proxy Tile Endpoints:

    • Tile API Client & Layer Enum: Implemented OpenWeatherMapTileClient and a strongly typed tile layer enum to manage upstream tile requests (e.g., precipitation, clouds, temperature, wind).
    • Secure Backend Proxying: Exposed REST controller endpoints to proxy weather map tile layer requests, keeping third-party API credentials concealed on the server side.
  • Frontend Integration & Leaflet View:

    • Interactive Map UI: Integrated Leaflet.js into a dedicated map view complete with a tile overlay switcher component, customized navigation controls, and map routing handled via MapController.
  • Security Hardening (CSRF Protection):

    • Model Injection: Injected active CSRF tokens directly into the map JSON data model state.
    • Interactive Form Submissions: Enabled seamless, CSRF-compliant form submissions directly within interactive Leaflet map popups (e.g., adding locations via map click).
  • Localization (i18n):

    • Translation Keys: Added message properties and translation keys covering map page titles, layer overlay switchers, and popup controls.

@podlLev podlLev self-assigned this Jul 31, 2026
@podlLev podlLev added feature New features, fresh endpoints, or user-facing functionality test Adding unit tests, web slice tests, or integration suites labels Jul 31, 2026
@podlLev
podlLev merged commit 2acf5b1 into dev Jul 31, 2026
2 checks passed
@podlLev
podlLev deleted the feature/weather-map branch July 31, 2026 07:03
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

feature New features, fresh endpoints, or user-facing functionality test Adding unit tests, web slice tests, or integration suites

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant