属性
Gets the Navigate.
Gets the Navigate.
treeSource.
方法
ProjectTree.changeGroup(ItemID,GroupID) 修改组
参数描述:
名称 |
类型 |
描述 |
ItemID |
String
|
|
GroupID |
String
|
{object} 参数说明
ItemID,
GroupID
Success-Response:
{
}
{json} 异常:
{
exception:{}
} |
- Version:
清空工程树
ProjectTree.createGroup(GroupName,checked,ParentGroupID) 向工程树添加组
参数描述:
名称 |
类型 |
描述 |
GroupName |
String
|
|
checked |
String
|
|
ParentGroupID |
String
|
{object} 参数说明
GroupName 名称,
checked 是否勾选,
ParentGroupID 组编号
Success-Response:
{
}
{json} 异常:
{
exception:{}
} |
- Version:
ProjectTree.deleteItem(ItemID) deleteItem
参数描述:
名称 |
类型 |
描述 |
ItemID |
String
|
{object} 参数说明
ItemID
Success-Response:
{
}
{json} 异常:
{
exception:{}
} |
- Version:
是否存在组
ProjectTree.export() 导出工程树
- Version:
- 3.1.0
导出工程树
工程
Success-Response:
{
}
{json} 异常:
{
exception:{}
}
ProjectTree.findItem(PathName) findItem
参数描述:
名称 |
类型 |
描述 |
ItemID |
String
|
{object} 参数说明
ItemID
Success-Response:
{
}
{json} 异常:
{
exception:{}
} |
- Version:
ProjectTree.getItemName(ItemID) getItemName
参数描述:
名称 |
类型 |
描述 |
ItemID |
String
|
{object} 参数说明
ItemID
Success-Response:
{
item
}
{json} 异常:
{
exception:{}
} |
- Version:
该方法可以检索具有指定关系的树条目。
参数描述:
名称 |
类型 |
描述 |
ItemID |
String
|
可选
返回与正在查找的组名称对应的ItemID。 |
ProjectTree.getObject(ItemID) getObject
参数描述:
名称 |
类型 |
描述 |
ItemID |
String
|
{object} 参数说明
ItemID
Success-Response:
{
item
}
{json} 异常:
{
exception:{}
} |
- Version:
该方法基于ItemID返回对象接口
参数描述:
名称 |
类型 |
描述 |
ItemID |
String
|
可选
返回与正在查找的组名称对应的ItemID。 |
返回:
返回对象。
获取treeSource数据
ProjectTree.getVisibility(ItemID) getVisibility
参数描述:
名称 |
类型 |
描述 |
ItemID |
String
|
{object} 参数说明
ItemID
Success-Response:
{
item
}
{json} 异常:
{
exception:{}
} |
- Version:
显示默认的影像和高程
初始化工程树数据
非sdk创建的对象绑定到工程树
insertProjectTree(parentGroupID, GroupName, name, objectType, entity)
参数描述:
名称 |
类型 |
描述 |
parentGroupID |
String
|
可选
组ID |
GroupName |
String
|
可选
当前组名称 不为空将会新建一个组 为空在parentGroupID下 |
name |
String
|
可选
显示在工程树的名称 |
objectType |
Float
|
可选
绑定的对象类型
none: -1,
point: 0,
polyline: 1,
polygon: 2,
label: 3,
imageLabel: 4,
position: 5,
imageLayer: 6,
dynamicObject: 7,
D3titles: 8,
box: 9,
circle: 10,
cone: 11,
pointfeaturelayer: 12,
polylinefeaturelayer: 13,
polygonfeaturelayer: 14, |
entity |
Promise
|
可选
要绑定的对象 |
该方法返回信息树中的条目是否是一个组。
参数描述:
名称 |
类型 |
描述 |
ItemID |
String
|
可选
当前条目的ID。 |
返回:
返回true。
移除所有(仅对含有objectType的entity有效)
调用方法:
sgworld.ProjectTree.removeAll("Billboard")
参数描述:
名称 |
类型 |
描述 |
type |
String
|
地图对象类型【Billboard | polygon | polyline | wall】 |
重命名信息树中的指定组。
参数描述:
名称 |
类型 |
描述 |
ItemID |
String
|
可选
重命名的组对应的ItemID。 |
GroupName |
String
|
可选
组的新名称。 |
该方法设置信息树条目在地形场景中的可见性。
参数描述:
名称 |
类型 |
描述 |
ItemID |
String
|
可选
返回与正在查找的组名称对应的ItemID。 |
bool |
boolean
|
可选
true|false。 |
显示隐藏所有对象(仅对含有objectType的entity有效)
调用方法:
sgworld.ProjectTree.setVisibilityAll("Billboard", false)
参数描述:
名称 |
类型 |
描述 |
type |
String
|
类型【Billboard | polygon | polyline | wall】 |
show |
Boolean
|
是否显示 |
统一工程树节点