cds-astro / ipyaladin

An IPython Widget for Aladin Lite, the sky viewer.
https://cds-astro.github.io/ipyaladin/
BSD 3-Clause "New" or "Revised" License
126 stars 26 forks source link

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

Open bmatthieu3 opened 6 months ago

bmatthieu3 commented 6 months ago

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