cds-astro / aladin-lite

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

Select every shape (footprint, source, MOC tile) within a polygon #99

Open imbasimba opened 1 year ago

imbasimba commented 1 year ago

Instead of having to select every source or footprint of interest individually, it would be great to allow users to draw polygons, circles, and rectangles to select all shapes within the drawn region.

Deselection should also be possible by drawing a shape, but I'm not sure what the best solution is for that. In ESASky, we make deselections by drawing from right to left, but there may be better ways of doing that. Potentially holding the alt key while drawing the shape or something along those lines.

Examples of how it was patched into Aladin Lite 2: https://www.youtube.com/watch?v=wGKX6L1sMw4&t=8s

bmatthieu3 commented 1 year ago

This is a good thing to have in the aladin lite core. This is somewhat linked to #81

bmatthieu3 commented 5 months ago

there is a new select method with different modes. Documentation is here: https://cds-astro.github.io/aladin-lite/Aladin.html#select