CARTAvis / carta-frontend

Source code repository for the frontend component of CARTA, a new visualization tool designed for the ALMA, the VLA and the SKA pathfinders.
https://cartavis.github.io/
GNU General Public License v3.0
19 stars 10 forks source link

Label points on catalog image overlay #1545

Open stevenrjanssens opened 3 years ago

stevenrjanssens commented 3 years ago

In addition to setting the columns CARTA uses for the RA and Dec, would it be possible to set a 3rd column that CARTA would use to add a label to each marker on the overlay (e.g. a name or index column)?

veggiesaurus commented 3 years ago

this might be a bit challenging, because we render catalog points using GPU acceleration and WebGL. We'd have to have an additional canvas overlay for displaying names, but limit it to a certain number of points (e.g. only if < 500 points are visible)

kswang1029 commented 3 years ago

What if it is just hovering over and showing the index/label? Would that meet the requirement? This is from “interactivity” point of view.

stevenrjanssens commented 3 years ago

Hovering would be useful as well. Also, I created this issue right before I discovered the "Catalog selection" cursor which satisfies my needs, even if a few more clicks are necessary!