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
When removing a layer by ID and adding it again, CannotAddLayerException is thrown. I expect it to work the same as removing a layer by reference (style.removeLayer(style.getLayer("water")!!))
MapLibre Android Version
11.7.1
Android SDK Version
35
Device
Galaxy Z Fold 6, Pixel 8 Pro, Simulator
What happened?
When removing a layer by ID and adding it again,
CannotAddLayerException
is thrown. I expect it to work the same as removing a layer by reference (style.removeLayer(style.getLayer("water")!!)
)Steps to reproduce
This throws the exception:
This does not throw the exception:
Renderer
OpenGL (choose this if you are unsure)
Relevant log output
Additional context
Recent Slack thread where a user encountered this: https://osmus.slack.com/archives/C04G140P9U6/p1734124243679559
Older Slack thread where I encountered this and found the workaround: https://osmus.slack.com/archives/C06U5MM097B/p1731481107077449?thread_ts=1731313912.938259&cid=C06U5MM097B
The text was updated successfully, but these errors were encountered: