我想在模型上保存所有svg标记并显示它们。我尝试使用此代码保存标记
```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");
但标记不会出现。
使用showMarkups
加载它们后,您还应该调用loadMarkups
。