Constructor
new Layers(viewer)
- Description:
构造函数
- Source:
- See:
Parameters:
Name | Type | Description |
---|---|---|
viewer |
* | 地图场景 |
Classes
Members
Add :Add
- Description:
添加对象类
- Source:
添加对象类
Type:
Creator :Creator
- Description:
创建对象类
- Source:
创建对象类
Type:
Geojson :Geojson
- Description:
Geojson主类
- Source:
Geojson主类
Type:
Imagery :Imagery
- Description:
影像图层主类
- Source:
影像图层主类
Type:
Model :Model
- Description:
模型主类
- Source:
模型主类
Type:
Particle :Particle
- Description:
粒子效果
- Source:
粒子效果
Type:
Voxels :Voxels
- Description:
体元栅格主类
- Source:
体元栅格主类
Type:
- Voxels
_layers
- Description:
所有场景中的图层
- Source:
所有场景中的图层
Methods
active(item, bool, typeopt)
- Description:
图层对象开启/关闭高亮效果,目前限制Entity形式加载的图层
- Source:
Parameters:
Name | Type | Attributes | Default | Description |
---|---|---|---|---|
item |
Entity | 图层对象,Entity形式,参考Cesium |
||
bool |
Boolean | 是否高亮 |
||
type |
ActiveType |
<optional> |
ActiveType.BLINK
|
高亮类型,默认呼吸灯类型 |
getById(id)
- Description:
根据id获取图层
- Source:
Parameters:
Name | Type | Description |
---|---|---|
id |
String | 待获取id |
Returns:
图层对象
remove(layer)
- Description:
移除指定图层
- Source:
Parameters:
Name | Type | Description |
---|---|---|
layer |
Object | 待移除图层 |
removeById(id)
- Description:
移除指定ID图层
- Source:
Parameters:
Name | Type | Description |
---|---|---|
id |
String | 图层Id |