Skip to content

Conversation

@cpparts
Copy link
Owner

@cpparts cpparts commented Jul 30, 2025

This PR exposes the removeOverlay function in aladin-lite, allowing users to programmatically remove overlays from their viewer. This PR also includes an initial approach for users to programmatically retrieve a list of the current overlays on the widget using the traitlet overlays, which is updated upon calling remove_overlay() and get_overlay.
I have written some basic, initial tests that confirm messages are being passed to the javascript side of things.

A short demo of adding some overlays and subsequently removing them, while checking the overlays traitlet throughout for sanity is shown below:

demo.mov

@cpparts cpparts merged commit 6e2d8ea into dev_cobalt Jul 30, 2025
4 checks passed
@cpparts cpparts deleted the CST-256-remove_overlay_cobalt branch July 30, 2025 18:53
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants