模型图层
Name | Type | Description | |||||||||||||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
options |
Object |
对象有下面这些属性:
|
|||||||||||||||||||||
global |
Object | 三维球对象(YouScene.earth) |
- Implements:
Example:
var modelLayer = youScene.layers.addModelLayer({
id: 'modelLayer',
name: 'modelLayer'
});
Demo:
Members
-
获取模型数量
-
data : Array.<I3d>
-
获取实体数据
- Implements:
-
获取或设置是否可见
Methods
-
添加数据
Name Type Description model
I3d 要删除的数据对象 Returns:
是否添加成功- Implements:
-
清空
- Implements:
-
销毁
- Implements:
-
getById(id) → Model
-
通过id查找模型
Name Type Description id
String 唯一标识 Returns:
Model对象 -
移除模型
Name Type Description model
I3d 要删除的数据对象 Returns:
是否移除成功- Implements:
-
通过id移除数据
Name Type Description id
String 唯一标识 Returns:
是否移除成功- Implements: