streetscape.gl icon indicating copy to clipboard operation
streetscape.gl copied to clipboard

How to add layers on Mapbox?

Open JianXinyu opened this issue 4 years ago • 1 comments

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!

JianXinyu avatar Dec 22 '21 09:12 JianXinyu

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

twojtasz avatar Jan 02 '22 04:01 twojtasz