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

rendering multiple rasters #13

Open
freeman-lab opened this issue Sep 28, 2021 · 1 comment
Open

rendering multiple rasters #13

freeman-lab opened this issue Sep 28, 2021 · 1 comment

Comments

@freeman-lab
Copy link
Member

We need to do some testing and maybe make some tweaks for the use case of multiple Raster components rendered simultaneously. It should be easy to turn layers separately on and off via the display prop it should be, but there are at least two things we need to improve:

  • Preventing data fetching when a layer is set to display=false (probably by skipping updateCamera at either the tile or Raster level)
  • Transparency blending when multiple overlapping Rasters have display=true

I believe the way we're using premultiplied alpha will produce a nice blending effect, but needs to be confirmed. The data fetching thing is definitely a current (undesirable) behavior that just needs to be addressed.

@katamartin
Copy link
Member

Seems like we might be able to close this after making updates in #26! We didn't implement the first bullet, but the same behavior should be supported now by conditionally rendering a Raster. Thoughts @freeman-lab?

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

No branches or pull requests

2 participants