简体   繁体   English

加载时不显示标记

[英]Markup not show when loaded

I have a problem when showing the markups on my PDF viewer. 在PDF查看器上显示标记时出现问题。 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')

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM