How to Enable the MiniMap extension and what is it?

橙三吉。 提交于 2021-01-29 18:45:33

问题


I'm interested to use the minimap extension but i find that there is no documentation. here is the question i want to know: What is the minimap extenstion? what is the requirement to use it?

I've tried to load the extension by running viewer v7.1 and its stop by can't get the DocumentNode.

var optionObject = {
      extensions: ['Autodesk.AEC.Minimap3DExtension']
    };
    var viewer = new Autodesk.Viewing.Private.GuiViewer3D(myViewerDiv, optionObject);
NOP_VIEWER.model.getDocumentNode()

NOP_VIEWER.model.getDocumentNode() is return null, the minimap didn't show up.


回答1:


You will need to be in first person walking mode for the minimap to show up:

And getDocumentNode() will only return the current view object if the model is loaded using loadDocumentNode, e.g.:

NOP_VIEWER.loadDocumentNode(doc,doc.getRoot().getDefaultGeometry())



来源:https://stackoverflow.com/questions/57689542/how-to-enable-the-minimap-extension-and-what-is-it

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!