6 ms·
Yes. deck.gl has two ways of interfacing with Mapbox GL, either where deck.gl is a layer on top of Mapbox GL (with a separate WebGL context) or by sharing the s
by kylebarron 5y ago
Yes. deck.gl has two ways of interfacing with Mapbox GL, either where deck.gl is a layer on top of Mapbox GL (with a separate WebGL context) or by sharing the same WebGL context. Sharing the same WebGL context allows e.g. Mapbox's 3D buildings to "pop" above deck.gl or to put Mapbox's labels above deck.gl layers. Those docs are here [0].
Either way, the recommended way of connecting deck.gl with Mapbox is through React Map GL. Those docs describe how to use Maplibre GL here [1] and here [2].
[0]: https://deck.gl/docs/get-started/using-with-map#using-deckgl-with-mapbox-gl-js https://deck.gl/docs/get-started/using-with-map#using-deckgl...
[1]: https://visgl.github.io/react-map-gl/docs/get-started/mapbox-tokens#display-maps-without-a-mapbox-token https://visgl.github.io/react-map-gl/docs/get-started/mapbox...
[2]: https://visgl.github.io/react-map-gl/docs/get-started/get-started#using-with-a-mapbox-gl-fork https://visgl.github.io/react-map-gl/docs/get-started/get-st...
- kylebarron 5y ago> Either way, the recommended way of connecting deck.gl with Mapbox is through React Map GL. I should note this is only the recommended way when you're using React