ArcGIS Server Image服务图层, 【需要引入mars2d-esri 插件库】
| 参数名称 | 类型 | 描述信息 | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
| options | Object | 参数对象,包括以下: 
 | 
使用示例:
let arcGisImageLayer = new ArcGisImageLayer({
  url: 'https://ihttmagery.oregonexplorer.info/arcgis/rest/services/NAIP_2011/NAIP_2011_Dynamic/ImageServer'
})
arcGisImageLayer.setBandIds('3,0,1').addTo(map);参考:
继承自
- L.esri.ImageMapLayer
属性值
波段值
是否可以调整透明度
对象的id标识
是否已添加到地图
名称 标识
透明度
对象的pid标识
显示隐藏状态
方法
        
        addTo(map) → ArcGisImageLayer
        
    plugins/mars2d-esri/ArcGisImageLayer.js 371
    
    将图层添加到地图
| 参数名称 | 类型 | 描述信息 | 
|---|---|---|
| map | Map | 地图对象 | 
返回值:
当前对象本身,可以链式调用
        
        bindPopup(content, options) → ArcGisImageLayer
        
    plugins/mars2d-esri/ArcGisImageLayer.js 209
    
    绑定Popup弹窗配置
| 参数名称 | 类型 | 描述信息 | 
|---|---|---|
| content | function | Popup弹窗回调方法 | 
| options | Map.PopupOptions | Object | 可选 Popup弹窗参数 | 
返回值:
当前对象本身,可以链式调用
使用示例:
imageMapLayer.bindPopup(function(err, identifyResults, response){
    var value = results.pixel.properties.value;
    return (value) ? 'Pixel value: ' + value : false;
  });
        
        bringToBack() → ArcGisImageLayer
        
    plugins/mars2d-esri/ArcGisImageLayer.js 191
    
    在所有其他叠加层下方重绘此层。
返回值:
当前对象本身,可以链式调用
        
        bringToFront() → ArcGisImageLayer
        
    plugins/mars2d-esri/ArcGisImageLayer.js 200
    
    在所有其他叠加层之上重绘此层。
返回值:
当前对象本身,可以链式调用
返回当前波段值。
返回值:
波段值
返回图层的当前镶嵌规则。
返回值:
镶嵌规则
返回当前无数据值。
返回值:
无数据值
返回当前像素类型。
返回值:
像素类型也称为数据类型
返回图层的当前渲染规则。
返回值:
当前渲染规则
        
        metadata(callback, context) → ArcGisImageLayer
        
    plugins/mars2d-esri/ArcGisImageLayer.js 294
    
    请求有关此要素图层的元数据。将使用error和调用回调metadata。
| 参数名称 | 类型 | 描述信息 | 
|---|---|---|
| callback | function | 回调方法 | 
| context | Object | 可选 侦听器的上下文(this关键字将指向的对象)。 | 
返回值:
当前对象本身,可以链式调用
使用示例:
featureLayer.metadata(function(error, metadata){
  console.log(metadata);
});返回L.esri.Query可用于查询此服务的新对象。
| 参数名称 | 类型 | 描述信息 | 
|---|---|---|
| callback | function | 回调方法 | 
| context | Object | 可选 侦听器的上下文(this关键字将指向的对象)。 | 
返回值:
使用示例:
imageService.query()
  .within(latlngbounds)
  .run(function(error, featureCollection, response){
    console.log(featureCollection);
});
        
        redraw() → ArcGisImageLayer
        
    plugins/mars2d-esri/ArcGisImageLayer.js 362
    
    用于向服务发出新请求并绘制响应。
返回值:
当前对象本身,可以链式调用
        
        remove() → ArcGisImageLayer
        
    plugins/mars2d-esri/ArcGisImageLayer.js 381
    
    将图层从地图上移除
返回值:
当前对象本身,可以链式调用
        
        setBandIds(bandIds) → ArcGisImageLayer
        
    plugins/mars2d-esri/ArcGisImageLayer.js 243
    
    指定要导出的单个波段,或者您可以通过指定波段编号来更改波段组合(红色、绿色、蓝色)。
| 参数名称 | 类型 | 描述信息 | 
|---|---|---|
| bandIds | String | Array.<Number> | 波段值 | 
返回值:
当前对象本身,可以链式调用
        
        setMosaicRule(mosaicRule) → ArcGisImageLayer
        
    plugins/mars2d-esri/ArcGisImageLayer.js 352
    
    使用传递的镶嵌规则重绘图层。
| 参数名称 | 类型 | 描述信息 | 
|---|---|---|
| mosaicRule | Object | 镶嵌规则 | 
返回值:
当前对象本身,可以链式调用
        
        setNoData(noData, noDataInterpretation) → ArcGisImageLayer
        
    plugins/mars2d-esri/ArcGisImageLayer.js 262
    
    指定单个值或一组值以将其视为无数据。没有数据将值呈现为透明。
| 参数名称 | 类型 | 描述信息 | 
|---|---|---|
| noData | Number | Array.<Number> | 无数据值 | 
| noDataInterpretation | String | 可选 可以是esriNoDataMatchAny| esriNoDataMatchAll. | 
返回值:
当前对象本身,可以链式调用
        
        setPixelType(pixelType) → ArcGisImageLayer
        
    plugins/mars2d-esri/ArcGisImageLayer.js 283
    
    像素类型也称为数据类型,与存储在栅格中的值的类型有关,例如有符号整数、无符号整数或浮点数。可能的值:C128、C64、F32、F64、S16、S32、S8、U1、U16、U2、U32、U4、U8、UNKNOWN。
| 参数名称 | 类型 | 描述信息 | 
|---|---|---|
| pixelType | String | 像素类型也称为数据类型 | 
返回值:
当前对象本身,可以链式调用
        
        setRenderingRule(renderingRule) → ArcGisImageLayer
        
    plugins/mars2d-esri/ArcGisImageLayer.js 333
    
    使用传递的渲染规则重绘图层。
| 参数名称 | 类型 | 描述信息 | 
|---|---|---|
| renderingRule | Object | 当前渲染规则 | 
返回值:
当前对象本身,可以链式调用
        
        unbindPopup() → ArcGisImageLayer
        
    plugins/mars2d-esri/ArcGisImageLayer.js 225
    
    解除绑定Popup弹窗配置
返回值:
当前对象本身,可以链式调用
定义的类型
当前类支持的EventType事件类型(包括自定义字符串事件名)
属性:
| 属性名称 | 类型 | 描述信息 | 
|---|---|---|
| loading | String | 当新功能开始加载时触发。 | 
| load | String | 当地图当前边界中的所有要素都已加载时触发。 | 
| requeststart | String | 当对服务的请求开始时触发。 | 
| requestend | String | 当对服务的请求结束时触发。 | 
| requestsuccess | String | 当对服务的请求成功时触发。 | 
| requesterror | String | 当对服务的请求响应错误时触发。 | 
| authenticationrequired | String | 当对服务的请求失败并需要身份验证时,这将被触发。 | 
使用示例:
//绑定监听事件
tileLayer.on('load', function (event) {
  console.log('触发了事件',event)
});