cds-astro / aladin-lite

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

Customize the shape of Markers #17

Open gmantele opened 5 years ago

gmantele commented 5 years ago

It is currently possible to change the default shape of an A.source....but not for an A.marker (currently always a disk).

bmatthieu3 commented 1 year ago

@gmantele - There is an example where you can give a render callback that will be called for each Source of a Catalog object and allows you to define what's being renderer. Does this answer the question ?

Here is the code source of the example: https://github.com/cds-astro/aladin-lite/blob/master/examples/al-cat-custom-draw-function.html

havok2063 commented 3 months ago

I second this feature. I'd like to be able to specify shape: "circle" in the catalogOptions to change the shape of the markers. I'd like to use the different shapes of the catalog sources and not a disk marker that blocks the view of the target.