cds-astro / aladin-lite

An astronomical HiPS visualizer in the browser
https://aladin.cds.unistra.fr/AladinLite/
GNU General Public License v3.0
102 stars 41 forks source link

Add the possibility to remove an HIPS item from the bookmark #171

Closed OlivierMarchal closed 4 months ago

OlivierMarchal commented 5 months ago

When we add manually a hips with: aladin.setBaseImageLayer(aladin.createImageSurvey(...)); it adds an item in the HIPS bookmark list. I have developed an application that allows to navigate in a database of 1500 Hips, and everytime the user selects an other HIPS, it adds an extra item in the list. Which means that this list can grow exponentially. In my case I would like to be able to have only one extra item in this list, ie having a method to remove an item based on the object or its id. Something like: aladin.removeHiPSFromBookmark(object imageHiPS or id)