Constructor
new Imagery(viewer)
- Description:
构造函数
- Source:
Parameters:
Name | Type | Description |
---|---|---|
viewer |
地图场景对象 |
Methods
addGeoserver(type, options) → {ImageryLayer}
- Description:
加载geoserver发布的影像,目前仅支持wmts
- Source:
Parameters:
Name | Type | Description |
---|---|---|
type |
String | 服务类型:wmts-WMTS数据,wms-WMS数据 |
options |
GeoserverWmtsOptions | 图层参数 |
Returns:
影像对象,ImageryLayer类对象,参考Cesium
- Type
- ImageryLayer
addMapbox(options)
- Description:
加载Mapbox发布的地图服务
- Source:
Parameters:
Name | Type | Description |
---|---|---|
options |
MapboxOption |
addTdt(type, token) → {ImageryLayer}
- Description:
加载天地图影像
- Source:
Parameters:
Name | Type | Description |
---|---|---|
type |
String | 地图类型:img-影像,vec-矢量,cva-矢量注记,cia-影像注记 |
token |
String | 天地图token |
Returns:
影像对象,ImageryLayer类对象,参考Cesium
- Type
- ImageryLayer
remove(layer)
- Description:
移除影像图层
- Source:
Parameters:
Name | Type | Description |
---|---|---|
layer |
ImageryLayer | 影像图层对象 |