How to raise AnnotationsLoaded Event?

Dear Support,

I’m trying to raise the annotationsLoaded event from my code.
Here is my piece of code : Unfortunatelly the annotationsLoaded event is not fired.
Anything I’m doing wrong ?

Best Regards,

Hello, I’m Ron, an automated tech support bot :robot:

While you wait for one of our customer support representatives to get back to you, please check out some of these documentation pages:

Guides:APIs:Forums:

Hey there,

The code you have should work.

The following works for me:

  instance.Core.annotationManager.addEventListener('annotationsLoaded', () => {
    console.log('test')
  })

  setTimeout(() => {
    instance.Core.annotationManager.trigger('annotationsLoaded')
  }, 1500)

Can you please make sure your trigger call is actually getting executed and that you are binding to the event properly.

Thanks!
Logan