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

Identify overlays by a name to be able to remove them #78

Open
bmatthieu3 opened this issue Apr 12, 2024 · 0 comments · May be fixed by #84
Open

Identify overlays by a name to be able to remove them #78

bmatthieu3 opened this issue Apr 12, 2024 · 0 comments · May be fixed by #84
Labels
Milestone

Comments

@bmatthieu3
Copy link
Collaborator

For overlays a name can be given in the options given in add_table, add_moc, add_stcs_footprints. It would be good to have a new method for removing them,

aladin.remove_overlay(name)

For this, aladin lite removeLayer function needs to be extended to search for an overlay by its name: https://github.com/cds-astro/aladin-lite/blob/develop/src/js/View.js#L1895

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

Successfully merging a pull request may close this issue.

2 participants