Skip to content

Commit

Permalink
[mapbox] fix drawing TerrainExtension in interleaved mode (#8115)
Browse files Browse the repository at this point in the history
  • Loading branch information
Pessimistress committed Sep 20, 2023
1 parent 53dc051 commit dca73c9
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion modules/mapbox/src/deck-utils.ts
Original file line number Diff line number Diff line change
Expand Up @@ -162,7 +162,8 @@ export function drawLayer(deck: Deck, map: Map, layer: MapboxLayer<any>): void {

deck._drawLayers('mapbox-repaint', {
viewports: [currentViewport],
layerFilter: ({layer: deckLayer}) => layer.id === deckLayer.id,
layerFilter: ({layer: deckLayer}) =>
layer.id === deckLayer.id || deckLayer.props.operation.includes('terrain'),
clearStack,
clearCanvas: false
});
Expand Down

0 comments on commit dca73c9

Please sign in to comment.