Skip to main content

External WebGL Context

Connect MapLibre's WebGL canvas to luma.gl using the WebGL device attach API.

External WebGL Context

This example attaches a WebGLDevice to the WebGL2 context created by MapLibre GL JS and renders a luma.gl overlay through the MapLibre render loop.

The map uses CARTO basemaps that do not require an access token. The overlay uses the map view-projection matrix so it stays anchored in world space.