问题
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