Skip to content
New issue

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

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

Already on GitHub? # to your account

How to add layers on Mapbox? #521

Open
JianXinyu opened this issue Dec 22, 2021 · 1 comment
Open

How to add layers on Mapbox? #521

JianXinyu opened this issue Dec 22, 2021 · 1 comment

Comments

@JianXinyu
Copy link

Hi, I'd like to load a layer using Three.js. Mapbox supports Three.js layer. How to use mapbox.addLayer() in Streetscape.gl? Thank you!

@twojtasz
Copy link
Contributor

twojtasz commented Jan 2, 2022

We use mapbox via the react-map-gl package. The LogViewer does have a onMapLoad() callback, which a pass-through from the StaticMap from react-map-gl.

Maybe this can help?

Also, it may be worth checking out https://deck.gl/docs/api-reference/mapbox/overview

# for free to join this conversation on GitHub. Already have an account? # to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants