Skip to content

Feature/shareable map url links#359

Open
Athina09 wants to merge 2 commits intocore-stack-org:experimental-featuresfrom
Athina09:feature/shareable-map-url-links
Open

Feature/shareable map url links#359
Athina09 wants to merge 2 commits intocore-stack-org:experimental-featuresfrom
Athina09:feature/shareable-map-url-links

Conversation

@Athina09
Copy link
Copy Markdown

Summary

Adds deep linking for the Landscape Explorer map: location, visible layers, LULC years, and map view (lng/lat/zoom) are reflected in the URL and restored on load or refresh. Includes a Copy link to this view button.

Changes

  • New src/utils/landscapeExplorerUrlState.js — parse/build query params
  • LandscapeExplorer.jsx — hydrate from URL when statesData is ready; debounced setSearchParams; copy button
  • Map.jsxonViewChange (debounced moveend), applyView / getViewSnapshot on ref; crop intensity id aliases

How to test

  1. Open /download_layers, pick state → district → block, toggle layers, pan/zoom.
  2. Confirm the address bar updates (or use Copy link to this view).
  3. Open the copied URL in a new tab — same area, layers, and view (after load).

apple added 2 commits March 23, 2026 00:01
- Add landscapeExplorerUrlState util to encode/decode query params
  (state, district, block, layers, LULC years, lng/lat/zoom)
- Hydrate Landscape Explorer from URL once states load; sync URL on changes
- Map: moveend debounce for view, applyView/getViewSnapshot on ref
- Add Copy link to this view control on /download_layers

Made-with: Cursor
@Ksheetiz-24 Ksheetiz-24 changed the base branch from main to experimental-features April 1, 2026 12:19
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant