Claude VM 0e9a47f6a7 feat(geoportal-v2): split-view compare mode (two basemaps, synced pan/zoom)
Adds a "Compară" toggle next to the basemap switcher. When active the
geoportal layout splits vertically into two MapViewer panes:

  ┌──────────────────┬─────────────────────┐
  │  Primary pane    │   Secondary pane    │
  │  - Search bar    │   - Basemap switch  │
  │  - Basemap switch│   - Independent     │
  │  - Click→panel   │     wayback/S2      │
  │                  │   - View-only       │
  └────────[<>]──────┴─────────────────────┘
            ▲
            └── drag separator (10%-90% clamp)

Each pane keeps its own basemap + wayback release + sentinel year state,
so the user can show e.g. Google sat vs Esri Wayback 2018 side by side
or S2 2017 vs S2 2024 to spot rural changes.

MapViewer gains three optional props:
  - viewState: controlled camera; jumpTo() on change with a sync flag
    so the resulting moveend doesn't feed back into onViewChange.
  - onViewChange: bubble user-driven moveend up to the parent so the
    other pane stays in lockstep.
  - disableFeatureClicks: secondary pane suppresses click→panel so the
    panel only ever opens from primary clicks.

Behaviours preserved: when compareMode is off the layout collapses to
the original single full-width pane verbatim; basemap switcher + panel
sit in the same top-right slot. Clicking the toggle while in compare
mode auto-picks an alternative basemap for the secondary pane so the
comparison starts meaningful from the first frame.

Co-Authored-By: Claude Opus 4.7 (1M context) <noreply@anthropic.com>
2026-05-25 09:38:16 +03:00
S
Description
No description provided
3.4 MiB
Languages
TypeScript 98.7%
Shell 0.4%
PLpgSQL 0.4%
Dockerfile 0.2%
CSS 0.1%
Other 0.1%