Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

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

Draft
wants to merge 9 commits into
base: main
Choose a base branch
from

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