类名 BaseImageryProvider

# new BaseImageryProvider(options)

基础影像服务接入类

参数:

名称 类型 默认值 描述
options Object
url String null

服务地址,服务地址格式请参考各个子类provider的API文档

tilingScheme Cesium.TilingScheme | CustomTilingScheme Cesium.GeographicTilingScheme

瓦片的平铺方案,详见Cesium.TilingScheme

rectangle Cesium.Rectangle Cesium.Rectangle.MAX_VALUE

地图加载范围,超出范围不会额外请求瓦片,详见Cesium.Rectangle

minimumLevel Number 0

图层最小请求瓦片级别,小于该级别不再请求瓦片

maximumLevel Number 20

图层最大请求瓦片级别,大于该级别不再请求瓦片

proxy Cesium.Proxy null

转发代理

credit Cesium.Credit 'MapGIS'

版权参数

httpMethod String 'GET'

HTTP请求方式,"GET"、"POST",默认为GET请求

headers Object {}

HTTP请求头,传入方式见下方示例,请严格按照HTTP请求头属性填写,可传入请求方式为POST时的编码方式,默认方式为"text/plain",请注意IGS.NET版本服务目前只支持"text/plain"的编码方式

成员变量

Cesium.Credit

# readonly credit

获取此图像提供程序处于活动状态时要显示的凭证

Boolean

# readonly hasAlphaChannel

是否包含alpha通道,如果此属性为false,则alpha通道(如果存在)将被忽略。如果此属性为真,任何没有alpha 通道的图像将被视为它们的alpha在任何地方都是1.0。当此属性为false时,内存使用和纹理上传时间会减少

Default Value:
  • true
Object

# readonly headers

请求头参数

String

# readonly httpMethod

获取此图像提供程序处于活动状态时要显示的凭证

Number

# readonly maximumLevel

瓦片最大级别

Number

# readonly minimumLevel

瓦片最小级别

Cesium.Proxy

# readonly proxy

获取代理

Rectangle

# readonly rectangle

地图加载范围

TilingScheme

# readonly tilingScheme

瓦片平铺规则

String

# readonly url

服务地址

方法

# requestImage(x, y, level, requestopt)

请求给定瓦片的图像

参数:

名称 类型 描述
x Number

瓦片的X坐标

y Number

瓦片的Y坐标

level Number

瓦片的详细级别

request Request

请求对象

Returns a promise for the image that will resolve when the image is available, or undefined if there are too many active requests to the server, and the request should be retried later.

Promise.<ImageryTypes> | undefined
构造函数
成员变量
方法
事件