如何启用MiniMap扩展,它是什么? [英] How to Enable the MiniMap extension and what is it?
问题描述
我有兴趣使用minimap扩展名,但是我发现没有文档.这是我想知道的问题:小地图的扩展是什么?有什么要求使用它?
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?
我已经尝试通过运行查看器v7.1加载扩展,并且停止获取该DocumentNode.
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()返回null,小地图没有显示.
NOP_VIEWER.model.getDocumentNode() is return null, the minimap didn't show up.
推荐答案
您需要处于第一人称行走模式才能显示迷你地图:
You will need to be in first person walking mode for the minimap to show up:
getDocumentNode()
仅在使用 loadDocumentNode
加载模型时返回当前视图对象,例如:
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())
这篇关于如何启用MiniMap扩展,它是什么?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!