Skip to content

Positional offset when changing the marker size and popup #352

@lnicastro

Description

@lnicastro

I'm not sure this is a known feature, but apparently the marker size cannot be modified once created. As you can see in the screenshot below (edit of https://aladin.cds.unistra.fr/AladinLite/doc/API/examples/marker-creation/), changing the size (here from 18px to 40px) causes a shift in position.

Image

You can also verify it live by loading the 3.8.0-beta version.

Image

Possibly a different issue, but because the only difference between, e.g.,

cat.addSources(A.source(56.87115, 24.10514));

and

cat.addSources([A.marker(56.87115, 24.10514)]);

is the setting of the 'marker' option to true (options['marker'] = true; - https://cds-astro.github.io/aladin-lite/A.js.html#line234), I don't understand why for markers a popup inset is always shown when clicked.

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