Forge Viewer: Show bottom toolbar and markups at t

2019-08-20 17:34发布

问题:

I'm developing a tool that allow's several users to add markups to the same autocad drawings. I also want the users to be able to use the bottom toolbar of the forge viewer to hide/show layers and the properties popup.

The markup extension is good to add svg markups, however it hides the bottom toolbar of the forge viewer when entering the edit mode. It seams that the only way to show the bottom toolbar of the forge viewer is to call the .hide() method on the extension object which will hide the markups.

Is there a way to show the bottom toolbar and the markups at the same time?

回答1:

Try:

Autodesk.Viewing.Extensions.Markups.Core.Utils.showLmvToolsAndPanels(viewer)

However some of the built-in functionality (panning etc) disabled in markup mode (for compatibility reasons) which is why the toolbars were hidden away in the first place.