Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[sigma,layer-leaflet/maplibre] using killLayer to properly remove m… #1488

Merged
merged 2 commits into from
Nov 19, 2024

Conversation

sim51
Copy link
Collaborator

@sim51 sim51 commented Nov 19, 2024

Description

If you :

  • create a graph with a map layer
  • then remove the map with clean function provided by the plugin
  • recreate a map layer

Then you will have an error : a layer named "layer-leaflet" already exists.

Fix

  • Change the killLayer to allow removing none canvas/webgl layers which can be created by createLayer.
  • Using killLayer to properly remove map container

jacomyal and others added 2 commits November 19, 2024 14:29
…ap container

Change the `killLayer` to allow removing none canvas/webgl layers which
can be created by `createLayer`.

Using it in map layer in the clean function.
@jacomyal jacomyal merged commit aeaeaaf into main Nov 19, 2024
2 checks passed
@jacomyal jacomyal deleted the bsi/map-layer-lifecycle branch November 25, 2024 10:01
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants