aurora-opensource / streetscape.gl

Visualization framework for autonomy and robotics data encoded in XVIZ

Home Page:http://www.streetscape.gl

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

How to add layers on Mapbox?

JianXinyu opened this issue · 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!

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