I am trying to add circle annotations using the WWT (WorldWide Telescope) JavaScript API, but some property setters seem to have no effect. Here is my code:
const addAnnotations = () => {
if (!wwt) return;
const centers = [
[0, 0],
[1, 1]
];
centers.forEach(([ra, dec]) => {
const circle = new Circle();
circle.setCenter(ra, dec);
circle.set_radius(1);
circle.set_lineColor("red");
// The following setters do not work:
circle.set_lineWidth(3);
circle.set_label("111");
circle.set_tag("222");
circle.set_skyRelative(false);
wwt!.si.addAnnotation(circle);
});
};
The circle annotations are created and visible, but properties like lineWidth, label, tag, and skyRelative are not applied. The circles appear with default styles instead.
Is there something I’m missing? Are these methods deprecated or incorrectly used? Any help would be appreciated.
