Skip to content

set_lineWidth, set_label, set_tag, and set_skyRelative have no effect when creating Circle annotations in WWT #335

@nuannuan111

Description

@nuannuan111

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.

Image

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions