Class: IGSMapImageLayer

IGSMapImageLayer

new IGSMapImageLayer(options)

document/layer/igserver/IGSMapImageLayer.js, line 20

IGS 地图图片图层。

用于接入 IGS MapServer 并按当前范围请求地图图片,支持 IGS 1.0 与 2.0 服务地址。 图层支持子图层过滤、专题图配置和动态出图参数控制,建议在图层加载完成后执行图层操作。

Name Type Default Description
options Object {} 可选

构造参数

Name Type Default Description
url String 可选

服务基地址,可以在末尾指定子图层id,若指定,则仅显示该子图层,例如:http://{服务基地址}/子图层id,[仅显示指定子图层]

httpMethod String "GET" 可选

HTTP请求方式,默认为GET请求 IGS1.0的服务为:http://{ip}:6163/igs/rest/mrms/docs/{folder}:{serviceName},参考示例:[IGS1.0的地图图片图层示例]
IGS2.0的服务为:http://{ip}:{port}/igs/rest/services/{folder}/{serviceName}/MapServer,参考示例:[IGS2.0的地图图片图层示例]
删除图层方法:[删除图层]

id String 可选

图层id,不给则给一个随机的id

opacity Number 1 可选

图层透明度,0到1之间的值,0为完全透明,1为不透明,参考示例:[设置图层透明度]

visible Boolean true 可选

图层显示或隐藏,true则显示,false则隐藏,参考示例:[设置图层显示或隐藏]

sublayers Array.<Object> | undefined 可选

会通过该参数中指定的子图层列表对地图服务中的子图层进行过滤,不在列表中的子图层将不会显示;如果没有指定该参数,则会按照地图服务中的子图层的属性显示所有子图层;如果该参数为空数组,则地图服务所有的子图层都不显示。 子图层顺序以及专题图参数仅支持IGS2.0服务,目前子图层支持的专题图如下:
1、单值专题图
2、分段专题图
参考示例:
[1、显示所有子图层]
[2、根据id显示子图层]
[3、通过方法设置子图层显隐]
[4、通过修改子图参数,设置子图层显隐]
[5、设置子图层顺序]
[6、通过方法设设置子图层顺序]
[7、通过修改子图参数,设置子图层顺序]
[8、设置子图层专题图-单值专题图]
[9、设置子图层专题图-分段专题图]
[10、通过方法设置子图层专题图]
[11、通过修改子图参数,设置子图层专题图]

spatialReference SpatialReference 可选

图层坐标系,支持4326(包含4490,4214以及4610)、3857以及EPSG上的自定义坐标系,坐标系默认从元信息中获取,也可指定坐标系, 参考示例:[设置图层坐标系]

imageWidth Number 256 可选

图片宽度,单位px,参考示例:[设置图片大小]

imageHeight Number 256 可选

图片高度,单位px,参考示例:[设置图片大小]

minScale Number 0 可选

最小显示比例尺,图层在视图中可见的最小比例尺(最缩小)。如果地图被缩小到超过这个比例,图层将不可见。默认值为0,0表示图层没有最小比例尺、可见性不受最小比例尺限制。minScale应该始终大于maxScale

maxScale Number 0 可选

最大显示比例尺,图层在视图中可见的最大比例尺(最放大)。如果地图被放大到超过这个比例,图层将不可见。默认值为0,0表示图层没有最大比例尺、可见性不受最大比例尺限制。maxScale应该始终小于minScale

tokenKey String 'token' 可选

token名

tokenValue String 可选

token值,只有当tokenValue存在时,才会绑定token

imageTransparency Boolean true 可选

图片中没有数据的地方是否透明,默认为true,即透明

clientId String 可选

客户端id,用户的唯一标识,默认为未定义;在地图服务中,调用接口时如果修改了地图的状态,包括设置动态投影、设置图层显示隐藏等,为了提升并发性能,服务端会根据clientId来生成临时地图,最佳做法是一个浏览器生成一个固定的唯一值;建议普通用户不要传该参数,webclient会根据当前浏览器生成一个固定的唯一值; 在IGServer 10.7.6.10及以后版本中,出图服务不再使用该参数。

isAntialiasing Boolean null 可选

返回的图片时,是否开启服务端抗锯齿功能;启用抗锯齿功能后,显示效果会更清晰,但会导致出图速度变慢,true表示开启抗锯齿,false表示关闭抗锯齿,如果没有设置,则默认应用地图文档(MapX)上的设置参数

disableHiRender Boolean false 可选

是否禁用快显服务,仅当图层的isSupportHiRender属性为true时生效

Fires
Examples

IGS1.0的地图图片图层示例

// ES5引入方式
const { SpatialReference } = zondy
const { IGSMapImageLayer } = zondy.layer

// ES6引入方式
import { SpatialReference,IGSMapImageLayer  } from "@mapgis/webclient-common"
// 添加图层
const igsMapImageLayer = new IGSMapImageLayer({
  // 服务基地址
  url: 'http://{ip}:6163/igs/rest/mrms/docs/{serviceName}',
});

IGS2.0的地图图片图层示例

// ES5引入方式
const { IGSMapImageLayer } = zondy.layer

// ES6引入方式
import { IGSMapImageLayer  } from "@mapgis/webclient-common"
// 添加图层
const igsMapImageLayer = new IGSMapImageLayer({
  // 服务基地址
  url: 'http://{ip}:{port}/igs/rest/services/{serviceName}/MapServer'
});

指定地图图片图层的坐标系示例

// ES5引入方式
const { SpatialReference} = zondy
const { IGSMapImageLayer } = zondy.layer

// ES6引入方式
import { SpatialReference,IGSMapImageLayer  } from "@mapgis/webclient-common"
// 添加图层
const igsMapImageLayer = new IGSMapImageLayer({
  // 服务基地址
  url: 'http://{ip}:{port}/igs/rest/services/{serviceName}/MapServer',
  // 自定义坐标系
  spatialReference: new SpatialReference({
    // 指定的wkid号,可在https://epsg.io/网站查询
    wkid: '指定的wkid号'
  })
});

IGS2.0的地图图层示例 - 设置图片大小

 // ES5引入方式
const { IGSMapImageLayer } = zondy.layer

// ES6引入方式
import { IGSMapImageLayer  } from "@mapgis/webclient-common"
// 添加图层
const igsMapImageLayer = new IGSMapImageLayer({
  // 服务基地址
  url: 'http://{ip}:{port}/igs/rest/services/{serviceName}/MapServer',
  // 瓦片宽度
  imageWidth: 512,
  // 瓦片高度
  imageHeight: 512
});

显示所有子图层

// ES5引入方式
const { IGSMapImageLayer } = zondy.layer

// ES6引入方式
import { IGSMapImageLayer  } from "@mapgis/webclient-common"
// 添加图层
const igsMapImageLayer = new IGSMapImageLayer({
  // 服务基地址
  url: 'http://{ip}:{port}/igs/rest/services/{serviceName}/MapServer'
});

根据id显示子图层

// ES5引入方式
const { IGSMapImageLayer } = zondy.layer

// ES6引入方式
import { IGSMapImageLayer  } from "@mapgis/webclient-common"
// 添加图层
const igsMapImageLayer = new IGSMapImageLayer({
  // 服务基地址
  url: 'http://{ip}:{port}/igs/rest/services/{serviceName}/MapServer',
  // 根据id显示子图层
  sublayers: [
     {
       // 子图层id
       id: 1,
       // 显示子图层
       visible: true
     },
     {
       id: 2,
       sublayers: [{
         id: '2-23',
         visible: true
       }]
     }
   ]
});

通过方法设置子图层显隐

// ES5引入方式
const { IGSMapImageLayer } = zondy.layer

// ES6引入方式
import { IGSMapImageLayer  } from "@mapgis/webclient-common"
// 添加图层
const igsMapImageLayer = new IGSMapImageLayer({
  // 服务基地址
  url: 'http://{ip}:{port}/igs/rest/services/{serviceName}/MapServer'
});
map.add(igsMapImageLayer);
// 通过方法设置子图层显隐
igsMapImageLayer.setSubLayer({
  id: 0,
  visible: false
})

通过修改子图参数,设置子图层显隐

// ES5引入方式
const { IGSMapImageLayer } = zondy.layer

// ES6引入方式
import { IGSMapImageLayer  } from "@mapgis/webclient-common"
// 添加图层
const igsMapImageLayer = new IGSMapImageLayer({
  // 服务基地址
  url: 'http://{ip}:{port}/igs/rest/services/{serviceName}/MapServer'
});
// 根据id获取子图层
const subLayer = igsMapImageLayer.findSublayerById(0)
// 设置子图层显隐
subLayer.visible = false

通过修改子图参数,设置子图层顺序

// ES5引入方式
const { IGSMapImageLayer } = zondy.layer

// ES6引入方式
import { IGSMapImageLayer } from "@mapgis/webclient-common"
const igsMapImageLayer = new IGSMapImageLayer({
   // 服务基地址
   url: 'http://{ip}:{port}/igs/rest/services/{serviceName}/MapServer'
 });
map.add(igsMapImageLayer);
// 根据id获取子图层
const subLayer = igsMapImageLayer.findSublayerById(0)
// 设置子图层顺序
subLayer.index = 2

设置子图层专题图-单值专题图

// ES5引入方式
const { IGSMapImageLayer } = zondy.layer
const { UniqueValueRenderer } = zondy.renderer
const { SimpleFillSymbol,SimpleLineSymbol } = zondy.symbol
const { Color } = zondy

// ES6引入方式
import { IGSMapImageLayer,UniqueValueRenderer,SimpleFillSymbol,SimpleLineSymbol,Color  } from "@mapgis/webclient-common"
igsMapImageLayer = new IGSMapImageLayer({
  // 服务基地址
  url: 'http://{ip}:{port}/igs/rest/services/{serviceName}/MapServer',
  // 设置子图层专题图
  sublayers: [
     {
       // 子图层id
       id: '子图层id',
       // 专题图参数
       renderer: new UniqueValueRenderer({
         //字段名
         field: '你的字段名',
         // 默认符号,不在专题图指定范围内的会采用该样式,可不设置
         defaultSymbol: new SimpleFillSymbol({
           // 填充颜色
           color: 'rgba(1,1,252,0)',
           // 外边线样式
           outline: new SimpleLineSymbol({
             //线颜色
             color: new Color(255, 1, 0, 1),
             //线宽
             width: 1
           })
         }),
         //单值专题图字段样式
         uniqueValueInfos: [{
           //指定字段值
           value: "指定的值",
           //匹配到该值后的样式
           symbol: new SimpleFillSymbol({
             // 填充颜色
             color: 'rgba(1,1,252,1)',
             // 外边线样式
             outline: new SimpleLineSymbol({
               //线符号颜色
               color: new Color(255, 1, 0, 11),
               //线宽
               width: 1
               })
             })
           },{
             //指定字段值
             value: "指定的值",
             //匹配到该值后的样式
             symbol: new SimpleFillSymbol({
               // 填充颜色
               color: new Color(211, 111, 11, 1)
             })
           }]
       })
     }
  ]
});

设置子图层专题图-分段专题图

// ES5引入方式
const { IGSMapImageLayer } = zondy.layer
const { ClassBreakRenderer } = zondy.renderer
const { SimpleFillSymbol,SimpleLineSymbol } = zondy.symbol
const { Color } = zondy

// ES6引入方式
import { IGSMapImageLayer,ClassBreakRenderer,SimpleFillSymbol,SimpleLineSymbol,Color  } from "@mapgis/webclient-common"
const igsMapImageLayer = new IGSMapImageLayer({
  // 服务基地址
  url: 'http://{ip}:{port}/igs/rest/services/{serviceName}/MapServer',
  // 设置子图层专题图
  sublayers: [
    {
     // 子图层id
     id: '子图层id',
     // 专题图参数
     renderer: new ClassBreakRenderer({
       //字段名
       field: '你的字段名',
       // 指定默认样式,不在专题图指定范围内的会采用该样式,可不设置
       defaultSymbol:  new SimpleFillSymbol({
         // 填充颜色
         color: 'rgba(222,1,252,1)',
         // 线符号样式
         outline: new SimpleLineSymbol({
           //线符号颜色
           color: new Color(255, 1, 0, 1),
           //线宽
           width: 1
         })
       }),
       //单值专题图字段样式
       classBreakInfos: [{
         // 最大范围
         maxValue: "最大范围",
         // 最小范围
         minValue: "最小范围",
         //匹配到该值后的样式
         symbol:  new SimpleFillSymbol({
           // 填充颜色
           color: 'rgba(1,1,252,1)',
           // 线符号样式
           outline: new SimpleLineSymbol({
             //线符号颜色
             color: new Color(255, 1, 0, 1),
             //线宽
             width: 1
           })
         })
       }]
     })
   }
 ]
});

通过方法设置子图层专题图

// ES5引入方式
const { IGSMapImageLayer } = zondy.layer
const { ClassBreakRenderer } = zondy.renderer
const { SimpleFillSymbol,SimpleLineSymbol } = zondy.symbol
const { Color } = zondy

// ES6引入方式
import { IGSMapImageLayer,ClassBreakRenderer,SimpleFillSymbol,SimpleLineSymbol,Color  } from "@mapgis/webclient-common"
const igsMapImageLayer = new zondy.layer.IGSMapImageLayer({
  // 服务基地址
  url: 'http://{ip}:{port}/igs/rest/services/{serviceName}/MapServer'
});
// 设置子图层专题图
igsMapImageLayer.setSubLayer({
  // 子图层id
  id: '子图层id',
  // 专题图参数
  renderer: new zondy.renderer.ClassBreakRenderer({
    //字段名
    field: '你的字段名',
    // 指定默认样式,不在专题图指定范围内的会采用该样式,可不设置
    defaultSymbol:  new zondy.symbol.SimpleFillSymbol({
      // 填充颜色
      color: 'rgba(222,1,252,1)',
      // 线符号样式
      outline: new zondy.symbol.SimpleLineSymbol({
        //线符号颜色
        color: new zondy.Color(255, 1, 0, 1),
        //线宽
        width: 1
      })
    }),
    //单值专题图字段样式
    classBreakInfos: [{
      // 最大范围
      maxValue: "最大范围",
      // 最小范围
      minValue: "最小范围",
      //匹配到该值后的样式
      symbol:  new zondy.symbol.SimpleFillSymbol({
        // 填充颜色
        color: 'rgba(1,1,252,1)',
        // 线符号样式
        outline: new zondy.symbol.SimpleLineSymbol({
          //线符号颜色
          color: new zondy.Color(255, 1, 0, 1),
          //线宽
          width: 1
        })
      })
    }]
  })
})

通过修改子图参数,设置子图层专题图

// ES5引入方式
const { IGSMapImageLayer } = zondy.layer
const { ClassBreakRenderer } = zondy.renderer
const { SimpleFillSymbol,SimpleLineSymbol } = zondy.symbol
const { Color } = zondy

// ES6引入方式
import { IGSMapImageLayer,ClassBreakRenderer,SimpleFillSymbol,SimpleLineSymbol,Color  } from "@mapgis/webclient-common"
const igsMapImageLayer = new IGSMapImageLayer({
  // 服务基地址
  url: 'http://{ip}:{port}/igs/rest/services/{serviceName}/MapServer'
});
// 根据id获取子图层
const subLayer = igsMapImageLayer.findSublayerById(0)
// 设置子图专题图
subLayer.renderer = new ClassBreakRenderer({
    //字段名
    field: '你的字段名',
    // 指定默认样式,不在专题图指定范围内的会采用该样式,可不设置
    defaultSymbol:  new SimpleFillSymbol({
      // 填充颜色
      color: 'rgba(222,1,252,1)',
      // 线符号样式
      outline: new SimpleLineSymbol({
        //线符号颜色
        color: new Color(255, 1, 0, 1),
        //线宽
        width: 1
      })
    }),
    //单值专题图字段样式
    classBreakInfos: [{
      // 最大范围
      maxValue: "最大范围",
      // 最小范围
      minValue: "最小范围",
      //匹配到该值后的样式
      symbol:  new SimpleFillSymbol({
        // 填充颜色
        color: 'rgba(1,1,252,1)',
        // 线符号样式
        outline: new SimpleLineSymbol({
          //线符号颜色
          color: new Color(255, 1, 0, 1),
          //线宽
          width: 1
        })
      })
    }]
  })

设置图层透明度

// ES5引入方式
const { IGSMapImageLayer } = zondy.layer

// ES6引入方式
import { IGSMapImageLayer  } from "@mapgis/webclient-common"
// 初始化时设置
const igsMapImageLayer = new IGSMapImageLayer({
  // 服务基地址
  url: 'http://{ip}:{port}/igs/rest/services/{serviceName}/MapServer',
  // 设置透明度
  opacity: 1.0
});
// 加载完成后设置
igsMapImageLayer.on('layerview-created', function (result) {
  console.log("加载完毕:", result.layer)
  // 视点跳转
  igsMapImageLayer.opacity = 0.5
})

显示或隐藏图层

/ ES5引入方式
const { IGSMapImageLayer } = zondy.layer

// ES6引入方式
import { IGSMapImageLayer  } from "@mapgis/webclient-common"
// 初始化时设置
const igsMapImageLayer = new IGSMapImageLayer({
  // 服务基地址
  url: 'http://{ip}:{port}/igs/rest/services/{serviceName}/MapServer',
  // 显示或隐藏图层
  visible: true
});
// 加载完成后设置
igsMapImageLayer.on('layerview-created', function (result) {
  console.log("加载完毕:", result.layer)
  // 显示或隐藏图层
  igsMapImageLayer.visible = !igsMapImageLayer.visible
})

删除图层

map.remove(igsMapImageLayer)

显示指定子图层

/ ES5引入方式
const { IGSMapImageLayer } = zondy.layer

// ES6引入方式
import { IGSMapImageLayer  } from "@mapgis/webclient-common"
// 初始化时设置
const igsMapImageLayer = new IGSMapImageLayer({
  // 服务基地址,可指定子图层id
  url: 'http://{ip}:{port}/igs/rest/services/{serviceName}/MapServer/{子图层id}',
  // 显示或隐藏图层
  visible: true
});

添加arcgis的MapImage图层

// 初始化图层管理容器
/ ES5引入方式
const { SpatialReference} = zondy
const { IGSMapImageLayer} = zondy.layer

// ES6引入方式
import { SpatialReference, IGSMapImageLayer  } from "@mapgis/webclient-common"
const arcgisMapImageLayer = new IGSMapImageLayer({
  url: 'https://map.geoq.cn/arcgis/rest/services/ChinaOnlineStreetWarm/MapServer',
  // 注意一个MapImage图层可能支持多个坐标系,这里指定4326坐标系
  spatialReference: new SpatialReference({
    wkid: 4326
  })
});
// 图层加载完毕
igsMapImageLayer.on('layerview-created', function (result) {
  console.log("加载完毕:", result.layer)
})

图层顺序

// 加载完毕后,更改图层顺序
map.reorder(igsMapImageLayer, '要移动到的index');

Extends

Members

allSublayersCollection

所有子图层对象信息

clientIdString

客户端Id

clippingAreaPolygon Extent Circle MultiPolygon null

空间裁剪范围。

仅用于客户端侧裁剪(是否支持由具体引擎实现决定)。

descriptionString

图层描述

disableHiRenderBoolean

是否禁用快显服务,仅当图层的isSupportHiRender属性为true时生效

documentInfoObject

地图文档信息

dynamicProjectionEnabledBoolean

是否开启动态投影

elevationInfoElevationInfo

高程模式参数。仅支持 ElevationMode.onTheScene 和 ElevationMode.onTheGround 两种模式。

imageFormatString

图片格式

imageFormatsArray.<String>

图片格式数组,表示服务支持的所有图片格式

imageHeightNumber

瓦片化显示时,瓦片高度

imageTransparencyBoolean

图片中没有数据的地方是否透明

imageWidthNumber

瓦片化显示时,瓦片宽度

isAntialiasingBoolean undefined

是否开启服务端抗锯齿.返回的图片是否抗锯齿,启用抗锯齿功能后,会导致出图速度变慢,true表示开启抗锯齿,false表示关闭抗锯齿,如果没有设置,则默认应用地图文档(MapX)上的设置

isSupportHiRenderBoolean

服务端是否支持快显,仅当isSupportHiRender为true时,disableHiRender属性才生效

mapNameString

地图名称

renderModeString

渲染模式。

  • tile:瓦片渲染
  • image:整屏出图渲染

sublayersCollection null Object

子图层对象

typeLayerType

图层类型

urlString

服务基地址

Events

layerview-update

document/layer/igserver/IGSMapImageLayer.js, line 528

子图层显隐更新语义事件(基于 layerview-update)。

该语义不是独立事件名,请监听 layerview-update 并通过 updateContent.name === 'sublayerVisible' 识别。

Properties:
Name Type Description
event Object

事件对象

Properties
Name Type Default Description
type String 'layerview-update' 可选

图层更新完毕事件

message String null 可选

更新描述

updateContent Array.<UpdateContent> null 可选

更新详情对象

layer Layer null 可选

地图图层对象

layerView MapView null 可选

图层的视图对象

sourceTarget Layer null 可选

事件发起对象

target Map null 可选

事件接收对象

Example

子图层显隐更新完毕事件

Layer.on('layerview-update', function (event) {
  // 获取更新事件对象
  console.log("更新完毕:", event)
  // 获取更新详情数组
  const updateContent = event.updateContent
  // 循环数组,根据事件名进行后续操作
  for (let i = 0; i < updateContent.length; i++) {
    // 子图层显隐更新完毕事件
    if(updateContent[i].name === 'sublayerVisible'){
      console.log("子图层显隐更新完毕事件:", event);
    }
  }
});

Methods

_convertCatalogLayers(catalogLayers){Array}

document/layer/igserver/IGSMapImageLayer.js, line 937

将 1.0 服务图层元信息转换为 2.0 服务图层元信息

Name Type Description
catalogLayers Array.<Object>
Returns:
Type Description
Array

clone(){IGSMapImageLayer}

document/layer/igserver/IGSMapImageLayer.js, line 1244

克隆 IGSMapImageLayer 对象

Returns:
Type Description
IGSMapImageLayer 克隆后的IGSMapImageLayer实例

fetchImage(extent, width, height){Promise}

document/layer/igserver/IGSMapImageLayer.js, line 1112

根据范围和大小获取image标签

Name Type Default Description
extent Extent

范围参数

width Number 256 可选

图片宽度,单位px

height Number 256 可选

图片高度,单位px

Returns:
Type Description
Promise 请求完毕的返回Promise
Example

根据范围和大小获取image标签

igsMapImageLayer.fetchImage({
  // 你的范围
  extent: new zondy.geometry.Extent(),
  // 图片宽度
  width: 256,
  // 图片高度
  height: 256
}).then((image) => {
  // 这里返回一个html的image标签
})

findSublayerById(id){IGSMapImageSubLayer|null}

document/layer/igserver/IGSMapImageLayer.js, line 1085

根据子图层id查询子图层

Name Type Description
id String

子图层id

Returns:
Type Description
IGSMapImageSubLayer | null 子图层信息

getImageUrl(options){String}

document/layer/igserver/IGSMapImageLayer.js, line 1147

根据参数获取图片的url

Name Type Description
options Object

参数对象

Name Type Description
extent Extent 可选

图片范围

width Number 可选

图片宽度

height Number 可选

图片高度

Returns:
Type Description
String 图片的url
Example

根据参数获取图片的url

const url = igsMapImageLayer.getImageUrl({
  // 你的范围
  extent: new zondy.geometry.Extent(),
  // 图片宽度
  width: 256,
  // 图片高度
  height: 256
})

load()

document/layer/igserver/IGSMapImageLayer.js, line 776

加载图层资源

Example

不加载图层,仅获取图层信息

// 初始化图层
const igsMapImageLayer = new zondy.layer.IGSMapImageLayer({
  // 服务基地址
  url: 'http://{ip}:{port}/igs/rest/services/{serviceName}/MapServer',
});
igsMapImageLayer.load().then((result) => {
  // 获取完图层信息
  console.log(result)
})

setSubLayer(igsMapImageSubLayer)

document/layer/igserver/IGSMapImageLayer.js, line 1155

更新子图层

Name Type Description
igsMapImageSubLayer IGSMapImageSubLayer

要更新的子图层

toJSON(){Object}

document/layer/igserver/IGSMapImageLayer.js, line 1221

转换为 JSON 对象

Returns:
Type Description
Object JSON 对象

IGSMapImageLayer.clone(igsMapImageLayer){IGSMapImageLayer}

document/layer/igserver/IGSMapImageLayer.js, line 1174

克隆图层对象

Name Type Description
igsMapImageLayer IGSMapImageLayer

被克隆的对象

Returns:
Type Description
IGSMapImageLayer 克隆后的图层对象
Example

克隆图层对象

// 添加图层
const igsMapImageLayer = new zondy.layer.IGSMapImageLayer({
  // 服务基地址
  url: 'http://{ip}:6163/igs/rest/mrms/docs/{serviceName}'
});
const newLayer = zondy.layer.IGSMapImageLayer.clone(igsMapImageLayer)

IGSMapImageLayer.fromJSON(json){IGSMapImageLayer}

document/layer/igserver/IGSMapImageLayer.js, line 1234

通过 JSON 对象构造并返回一个 IGSMapImageLayer 对象

Name Type Description
json Object

JSON 对象

Returns:
Type Description
IGSMapImageLayer 新的 IGSMapImageLayer 对象