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

Deck.gl "under" raw mapbox layer z-index #2173

Closed
cyrilchapon opened this issue Aug 8, 2018 · 6 comments
Closed

Deck.gl "under" raw mapbox layer z-index #2173

cyrilchapon opened this issue Aug 8, 2018 · 6 comments

Comments

@cyrilchapon
Copy link

Hey,

I read about z contexts of deck.gl and mapbox.
In here we need some advanced visualizations, and are considering transitionning things from mapbox to deck.gl.

However, in the meantime of the transition, we need to overlay some deck.gl data in between multiple mapbox layers. Is that possible ?

@ibgreen
Copy link
Collaborator

ibgreen commented Aug 8, 2018

we need to overlay some deck.gl data in between multiple mapbox layers. Is that possible ?

@cyrilchapon We are working on an integration with the new custom layer API that mapbox is developing #2132 . In the meantime, you'd need to work with two mapbox/react-map-gl instances. It is not very efficient, but as long as you not using 3D graphics (except in the top component, whether deck or mapbox) it could be made to work.

@ibgreen
Copy link
Collaborator

ibgreen commented Aug 8, 2018

Duplicate of #2132

@ibgreen ibgreen marked this as a duplicate of #2132 Aug 8, 2018
@ibgreen ibgreen closed this as completed Aug 8, 2018
@cyrilchapon
Copy link
Author

Hey ibgreen. Thanks. I'm ok for trading some perfs, temporarily, for this.

Is there any example out there for the 2 maps instances strategy ?

@ibgreen
Copy link
Collaborator

ibgreen commented Aug 9, 2018

Not that I am aware of. I believe kepler.gl has the option to do it, but that code base is of course quite complex.

If you are using React you should just be able to stack a StaticMap, Deck and StaticMap.

@Harrisandwich
Copy link

@cyrilchapon Any luck with this? I'm currently in a similar situation where I would like to be able to show mapbox street and label layers over deck.gl layers. If you got this working and can provide an example it would be super helpful!

@cyrilchapon
Copy link
Author

Hey @Harrisandwich, sorry but I didn't fond anti solution so I went withtout deck.fl

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

3 participants