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

Handle removeSource embedded in layer upon cleanup. #341

Open
wants to merge 1 commit into
base: master
Choose a base branch
from

Conversation

shanekwheeler
Copy link

@shanekwheeler shanekwheeler commented Nov 26, 2021

This seems the safest way to conditionally add cleanup of the created source during layer cleanup. Note by default it won't run and will have to be enabled with the removeSource binding. Once people have tested this out with other scenarios it could be enabled by default with the ability to turn off. #88 (comment)

@HarelM
Copy link

HarelM commented May 22, 2022

In case this is of interest I've added a test to cover this scenario in my fork which follows this original repo.
maplibre/ngx-maplibre-gl#50

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.

3 participants