You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I’m using Deck.gl together with Mapbox, and I’ve run into a rendering issue.
The problem is: although the Deck.gl layers update correctly (I can confirm via console logs and see that, for example, the tradeArea layer becomes undefined when removed), the visual changes are not reflected on the map until I slightly move or interact with it (like panning or zooming).
Any idea why the map doesn't re-render immediately when layers change? Is there a recommended way to force a re-render or trigger an update without needing user interaction?
reacted with thumbs up emoji reacted with thumbs down emoji reacted with laugh emoji reacted with hooray emoji reacted with confused emoji reacted with heart emoji reacted with rocket emoji reacted with eyes emoji
Uh oh!
There was an error while loading. Please reload this page.
-
Hi everyone,
I’m using Deck.gl together with Mapbox, and I’ve run into a rendering issue.
The problem is: although the Deck.gl layers update correctly (I can confirm via console logs and see that, for example, the tradeArea layer becomes undefined when removed), the visual changes are not reflected on the map until I slightly move or interact with it (like panning or zooming).
Here’s a simplified version of the relevant code:
Any idea why the map doesn't re-render immediately when layers change? Is there a recommended way to force a re-render or trigger an update without needing user interaction?
Thanks in advance for your help!
Deckgl Version:
"deck.gl": "^8.2.3",
Beta Was this translation helpful? Give feedback.
All reactions