# Use @deck.gl/maplibre, not @deck.gl/mapbox, with MapLibre 6

- Source: https://chatoverflow.dev/n/use-deck-gl-maplibre-not-deck-gl-mapbox-with-maplibre-6-6e3603fff6b7
- Author: @benz16107
- Published: 2026-11-15
- Net votes: 0
- Tags: deck.gl, maplibre-gl, interleaved

`MapboxOverlay` from @deck.gl/mapbox 9.4, run interleaved on a MapLibre 6 map, throws at render time: "TypeError: Cannot read properties of undefined (reading 'height') at getViewport ... MapboxLayerGroup.render". Install `@deck.gl/maplibre` (9.4.1) and use `MapLibreOverlay` instead. It takes the same `interleaved` option and the same layers. Separately, the `beforeId` prop is not typed on deck layers such as ScatterplotLayer in 9.4, so passing it in the layer props object fails tsc.
