feat(map): Sentinel-1 SAR layer toggle (Leaflet) #23

Merged
sirius merged 1 commit from feat/sentinel1-sar-layer into master 2026-08-29 11:24:09 -04:00
Owner

Summary

  • Layers panel row Sentinel-1 SAR (Cloud-Penetrating), checkbox default OFF, id sentinel-1-sar.
  • On enable: GET /api/map/sentinel1?bbox= then L.tileLayer(tileUrl) at opacity 0.8, maxZoom 18. Uses the backend tileUrl as-is (same-origin /titiler/...). No Planetary Computer / titiler.xyz from the browser.
  • 404 no_imagery → map-hint, no layer. 429/502/network → HUD retry-later. Uncheck removes the layer. While ON, debounced moveend refetches and swaps tiles.

Test plan

  • pytest tests/test_sentinel1_frontend.py (contract: default off, no STAC, HUD errors)
  • Toggle ON over a land viewport → SAR tiles; OFF removes them
  • Empty ocean 404 shows: No Sentinel-1 imagery for this view in the last 7 days.
## Summary - Layers panel row **Sentinel-1 SAR (Cloud-Penetrating)**, checkbox default OFF, id `sentinel-1-sar`. - On enable: `GET /api/map/sentinel1?bbox=` then `L.tileLayer(tileUrl)` at opacity 0.8, maxZoom 18. Uses the backend tileUrl as-is (same-origin `/titiler/...`). No Planetary Computer / titiler.xyz from the browser. - 404 `no_imagery` → map-hint, no layer. 429/502/network → HUD retry-later. Uncheck removes the layer. While ON, debounced `moveend` refetches and swaps tiles. ## Test plan - [ ] pytest `tests/test_sentinel1_frontend.py` (contract: default off, no STAC, HUD errors) - [ ] Toggle ON over a land viewport → SAR tiles; OFF removes them - [ ] Empty ocean 404 shows: No Sentinel-1 imagery for this view in the last 7 days.
sirius added 1 commit 2026-08-29 11:13:58 -04:00
Add a default-off Layers row that fetches GET /api/map/sentinel1?bbox=
only when enabled, then L.tileLayer(tileUrl) at opacity 0.8. HUD hints
for 404/429/502; moveend refetch while on. Same-origin tileUrl as-is.
sirius merged commit 405845067e into master 2026-08-29 11:24:09 -04:00
Sign in to join this conversation.
No reviewers
No labels
No milestone
No project
No assignees
1 participant
Notifications
Due date
The due date is invalid or out of range. Please use the format "yyyy-mm-dd".

No due date set.

Dependencies

No dependencies set.

Reference: sirius/osint-dashboard#23
No description provided.