Skip to content

Add transition overlays to dft_map_interactive()#7

Merged
NewGraphEnvironment merged 1 commit intomainfrom
6-map-refactor
Mar 7, 2026
Merged

Add transition overlays to dft_map_interactive()#7
NewGraphEnvironment merged 1 commit intomainfrom
6-map-refactor

Conversation

@NewGraphEnvironment
Copy link
Owner

Summary

  • Add transition parameter to dft_map_interactive() accepting output of dft_rast_transition()
  • Each transition type rendered as toggleable checkbox overlay with to_class color from class table
  • Stable transitions (same from/to class) excluded by default
  • Two legends: Land Cover classes + Transitions
  • Vignette simplified from ~55 lines of hand-built leaflet to single dft_map_interactive() call
  • Google Satellite and Esri Satellite added as default basemaps; custom tile URLs supported

Test plan

  • devtools::test() — 120 pass
  • Vignette builds and renders correctly
  • Tested on two additional AOIs via STAC fetch

Closes #6
Relates to NewGraphEnvironment/sred-2025-2026#16

🤖 Generated with Claude Code

New `transition` parameter accepts output of dft_rast_transition().
Each transition type becomes a toggleable checkbox overlay with color
from the to_class in the class table. Stable transitions (same from/to)
excluded by default. Two legends: Land Cover + Transitions.

Simplify vignette to single dft_map_interactive() call with both
classified layers and transition overlays.

Closes #6
Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
@NewGraphEnvironment NewGraphEnvironment merged commit 7a98881 into main Mar 7, 2026
1 check passed
@NewGraphEnvironment NewGraphEnvironment deleted the 6-map-refactor branch March 7, 2026 19:38
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.

Refactor maps: dft_map_compare(), dft_map_transition(), dft_map_interactive() as composer

1 participant