Skip to content

Overlays added with .addOverlay not appearing in the viewer.overlays array? #2374

Closed Answered by DevinSmithWork
DevinSmithWork asked this question in Q&A
Discussion options

You must be logged in to vote

Ah -- never mind, I found it. In case anyone come across this Q:

  • overlays added with .addOverlay are stored in viewer.currentOverlays
  • This array can be emptied to clear them all... however, you'll also have to manually remove the HTML elements. In my case I'm using document.getElementsByClassName() and removing them from there.

Replies: 1 comment

Comment options

You must be logged in to vote
0 replies
Answer selected by iangilman
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
1 participant