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
Uncaught error 'source-id' is already added to the map
I can trigger this error by toggling a rendered data source and layer. For example by toggling the value of showLayer off and on again:
It fixes the error, but then I get further errors from the wrapper as it tries to remove the layers itself: Error on remove layer Error: The layer 'layer-id' has not been added to the map and cannot be removed
The text was updated successfully, but these errors were encountered:
Uncaught error 'source-id' is already added to the map
I can trigger this error by toggling a rendered data source and layer. For example by toggling the value of showLayer off and on again:
It looks like data source cleanup is not being done by react-azure-maps?
If I manually remove the source and layer in a cleanup useEffect:
It fixes the error, but then I get further errors from the wrapper as it tries to remove the layers itself:
Error on remove layer Error: The layer 'layer-id' has not been added to the map and cannot be removed
The text was updated successfully, but these errors were encountered: