管道图层
Name | Type | Description | |||||||||||||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
options |
Object |
对象有下面这些属性:
|
|||||||||||||||||||||
global |
Object | 三维球对象(YouScene.earth) |
- Implements:
Example:
var layer = youScene.layers.addPipeLineLayer({
id:'123',
name:'213',
});
Demo:
Members
-
获取管道的数量
-
获取或设置是否可见
Methods
-
add(pipeLine) → PipeLine
-
添加线到图层
Name Type Description pipeLine
PipeLine pipeLine Returns:
返回添加的线对象 -
清空PipeLineLayer
-
销毁PipeLineLayer
- Implements:
-
通过ID查询管道
Name Type Description id
String 线唯一的标识符 Returns:
返回 pipeLine 对象- Implements:
-
通过索引查询管道
Name Type Description index
String 线图层索引 Returns:
返回 pipeLine 对象- Implements:
-
通过ID查询管道的索引
Name Type Description id
String 线唯一的标识符 Returns:
查得到返回索引,查不到返回-1 -
移除管道
Name Type Description pipeLine
Object 对象 -
通过id移除管道
Name Type Description id
String 唯一标识符 Returns:
移除成功返回true, 失败返回false