Replies: 1 comment 1 reply
-
|
I don't think it is intentional. I'm not sure if it address this issue completely or not, but I have seen a |
Beta Was this translation helpful? Give feedback.
1 reply
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Uh oh!
There was an error while loading. Please reload this page.
-
I have a
CustomLayerInterfaceimpl that spins up a bunch of webgl buffers and etc., and I've noticed that when cleaning up the map withmap.remove(), these resources don't get cleaned up correctly andCustomLayerInterface.onRemovedoesn't get called.The docs state:
But this doesn't seem to also include layers with side effects (which is probably a rare edge case, tbh). I've fixed this just with
map.removeLayer(name)before callingmap.remove(), but it's unclear to me if this is intentional (feels so based on internal resources) or a bug.This is using maplibre-gl-js 5.9.0, doing the following:
Beta Was this translation helpful? Give feedback.
All reactions