Getting assertion failed errors using GoogleMapsOverlay in React #7954
-
I'm creating a React app that uses deck.gl's GoogleMapsOverlay and I'm running into an issue with setting/updating layers. After the map loads, the console fills up with a bunch of assertion failed errors and hovering over the map causes the screen to turn black. Moving the map allows you to see it again, but then if you move your mouse after moving the map it goes back to a black screen. I'm thinking the issue is a misunderstanding of how the React lifecycle interacts with deck.gl or something related to #4034. If anyone could take a look and see what might be going on and what I'm missing I'd appreciate it. |
Beta Was this translation helpful? Give feedback.
Replies: 1 comment
-
Figured this out - I was initializing a new GoogleMapsOverlay on each render inside my DeckGLOverlay component. Seems to be fixed by simply saving the GoogleMapsOverlay in a state. |
Beta Was this translation helpful? Give feedback.
Figured this out - I was initializing a new GoogleMapsOverlay on each render inside my DeckGLOverlay component. Seems to be fixed by simply saving the GoogleMapsOverlay in a state.