Class: WebPrintingJobLayers

WebPrintingJobLayers

将图例添加到布局的业务图层参数类。

new WebPrintingJobLayers(option)

Usage
import { WebPrintingJobLayers } from '@supermapgis/iclient-leaflet';

new WebPrintingJobLayers(option);
<script type="text/javascript" src="https://iclient.supermap.io/dist/leaflet/iclient-leaflet.js"></script>
<script>
  new L.supermap.WebPrintingJobLayers({paramsNames});
  // 弃用的写法
  new SuperMap.WebPrintingJobLayers(option);
</script>
common/iServer/WebPrintingJobLayers.js, line 6
Name Type Description
option Object

参数。

Name Type Description
name string

图层名称的字符串。此名称必须唯一,并且必须与定义业务图层的 LegendOptions_layers 元素中的图层名称匹配。

layertype string

图层类型。

url string

图层 URL 地址。

Version:
  • 10.1.0

API Relations

As constructor parameter: WebPrintingJobLegendOptions , WebPrintingJobLittleMapOptions.

Members

layerTypestring

图层类型。

namestring

图层名称。

urlstring

图层 URL 地址。

Methods

destroy()

common/iServer/WebPrintingJobLayers.js, line 40

释放资源,将引用资源的属性置空。