Skip to content

Add demo that re-projects data on-the-fly#14

Draft
katamartin wants to merge 9 commits intomainfrom
katamartin/testing/leap
Draft

Add demo that re-projects data on-the-fly#14
katamartin wants to merge 9 commits intomainfrom
katamartin/testing/leap

Conversation

@katamartin
Copy link
Member

@katamartin katamartin commented Aug 18, 2022

  • Sets up new test-leap using CMIP6 demo data
    • Fetches data and calculates zoom, translate, and bounds outside of minimaps
  • Makes a few tweaks to library to support this case
    • Redefines draw method every time projection changes
    • Clears the draw buffer on every invalidation
    • Makes viewport tracking the explicit responsibility of Raster
      • Avoids usage of stale context values read in draw calls
      • Relies on temporary setTimeout hack to workaround stale draws when multiple projection-related props are updated at once (aspect and other props in this case)

CleanShot 2022-08-18 at 14 42 24

@katamartin katamartin requested a review from freeman-lab August 18, 2022 21:40
@katamartin katamartin mentioned this pull request Sep 21, 2022
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