options |
Object
|
额外构造参数
| Name |
Type |
Default |
Description |
id |
String
|
|
可选
图层id |
imageFormat |
String
|
'PNG'
|
可选
瓦片格式 |
opacity |
Number
|
1
|
可选
图层透明度 |
visible |
Boolean
|
true
|
可选
图层显示或隐藏 |
tokenKey |
String
|
|
可选
token名 |
tokenValue |
String
|
|
可选
token值 |
tokenAttachType |
Boolean
|
false
|
可选
当请求类型为POST时,是否将token设置在请求体中 |
httpMethod |
FetchMethod
|
FetchMethod.get
|
可选
数据请求方式 |
imageServer |
ImageServer
|
|
可选
影像服务Server |
imageSR |
SpatialReference
|
|
可选
动态投影的空间参考系 |
interpolation |
String
|
|
可选
重采样方式,支持最近邻域插值NearestNeighbor/双线性插值BilinearInterpolation,默认数据本身的重采样方式 |
bandIds |
Array.<Number>
|
|
可选
波段id列表,例如[2,0,1] |
renderingRule |
RasterFunction
|
|
可选
渲染规则,NDVI应用于多光谱影像数据,HILLSHADE应用于DEM高程数据。例如renderingRule={type:HILLSHADE,altitude:75,azimuth:120,zFactor:1.0}或renderingRule={type:NDVI,redIndex:0,nirIndex:2} |
clippingArea |
Object
|
|
可选
图层裁剪对象 |
renderMode |
String
|
|
可选
影像的展现形式。可选'tile' 、 'image'。默认为'image'。 当选项为'image'时,加载影像会请求一张覆盖当前屏幕的图像。当选项为'tile'时,加载影像时以瓦片的方式平铺。 |
imageWidth |
Number
|
512
|
可选
影像的宽度,仅在renderMode为'tile'时生效。 |
imageHeight |
Number
|
512
|
可选
影像的高度,仅在renderMode为'tile'时生效。 |
|