# M3DTree

#### new Cesium.M3DTree(options)
MapGIS/M3dLayer/M3DTree.js 14

构建树

Name | Type | Description
--- | --- | ---

`options`

Object

附加参数

Name | Type | Description
--- | --- | ---
`url` | String | 用于请求数据的url
`m3dtreeParent` | Object | 构建过程中用于指定树节点的父节点

### Members

#### attMap : Object
MapGIS/M3dLayer/M3DTree.js 99

MapgisM3D叶子节点的属性

#### depth : Number
MapGIS/M3dLayer/M3DTree.js 34

节点在树中的深度值

#### index : String
MapGIS/M3dLayer/M3DTree.js 47

节点的索引

#### indexHashMap : HashMap
MapGIS/M3dLayer/M3DTree.js 60

节点索引与对应MapgisM3D节点的映射

#### m3dtreeChildren : Object
MapGIS/M3dLayer/M3DTree.js 86

节点的子节点数组

#### m3dtreeParent : Object
MapGIS/M3dLayer/M3DTree.js 73

节点的父节点

#### nodeName : String
MapGIS/M3dLayer/M3DTree.js 112

构建树的节点名称

### Methods

#### createM3DTreeByRequest(url)
MapGIS/M3dLayer/M3DTree.js 254

根据给定的url发请求完成构建树

Name | Type | Description
--- | --- | ---
`url` | String | 服务地址url

#### createM3DTreeByTileset(tileset) → Boolean
MapGIS/M3dLayer/M3DTree.js 179

根据tileset/layer构建树

Name | Type | Description
--- | --- | ---
`tileset` | Object | 图层

##### Returns:

返回函数是否执行成功

#### getM3DByName(name)
MapGIS/M3dLayer/M3DTree.js 238

根据名称查询得到对应的mapgism3d

Name | Type | Description
--- | --- | ---
`name` | String |