Overlays added with .addOverlay not appearing in the viewer.overlays array? #2374
-
I have a project where a user can click a button, which triggers multiple viewer.addOverlay() to highlight a few different places in the canvas. I'm currently working on a "clear" function which removes all of these overlays. I know I can remove them with .removeOverlay(), but this requires passing an ID -- for my project, a class name would make more sense. I thought I might instead loop through the viewer.overlays array -- however, the newly-added overlays are not included in this array, only the ones I created while initializing the viewer. Can someone point me to where dynamically-added overlays are stored? |
Beta Was this translation helpful? Give feedback.
Replies: 1 comment
-
Ah -- never mind, I found it. In case anyone come across this Q:
|
Beta Was this translation helpful? Give feedback.
Ah -- never mind, I found it. In case anyone come across this Q: