I have a problem when showing the markups on my PDF viewer. The markups are not show when i load the data were saved before. I don't have any error and it seem that the markups already loaded because when i try to load it again i have a message "This layer is already loaded, will not load again.", but on my screen nothing in there ? Please help !
var _markupsExtension =viewer.getExtension("Autodesk.Viewing.MarkupsCore");
_markupsExtension.show();
_markupsExtension.loadMarkups(data, 'layer1')
You will need to enter and then leave the edit mode before you could restore saved markups so try:
_markupsExtension.enterEditMode();
_markupsExtension.leaveEditMode();
_markupsExtension.loadMarkups(data, 'layer1')