I want to save all svg Markups on model and show them. I try to save Markups with this code ```markupsPersist = markup.generateData(); viewerStatePersist = markup.viewer.getState(); markup.viewer.restoreState(viewerStatePersist);``` and try to get it with this
```markupsPersist = markup.generateData(); viewerStatePersist = markup.viewer.getState(); markup.viewer.restoreState(viewerStatePersist);``` and try to get it with this
```markupsPersist = markup.generateData(); viewerStatePersist = markup.viewer.getState(); markup.viewer.restoreState(viewerStatePersist);``` and try to get it with this
markup.viewer.restoreState(viewerStatePersist); markup.show(); markup.loadMarkups(markupsPersist, "markups-svg");
markup.viewer.restoreState(viewerStatePersist); markup.show(); markup.loadMarkups(markupsPersist, "markups-svg");
but Markups dont appear.
你也应该叫showMarkups
使用它们加载后loadMarkups
。
The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.