"It looks like the events for the annotation callbacks are not being set when a 2nd document is loaded.
We will try to fix this issue in the next version."
so,
i'm running the same issue with v.2.2.0 latest
please let me know what is the solution as i'm using loadDocument() to load second time and more
with existing webviewer instance and
a. listen to annotManager.on('annotationChanged', function (e) {
if (!e.imported) {
throttledSave(); //saving annotation via calling saveAnnotations()
}
b. using this code to delete and import server based xfdf annotation file
annotManager.importAnnotationsAsync(sync.syncmap[2].Value, function (list) {
annotManager.drawAnnotationsFromList(list);
});
both a+b work great on first time a document is loaded,
both a+b never triggered on second...and so forth
Best!
Danny Mendel