new WebPrintingJobLegendOptions(option)
Usage
import { WebPrintingJobLegendOptions } from '@supermapgis/iclient-leaflet';
new WebPrintingJobLegendOptions(option);<script type="text/javascript" src="https://iclient.supermap.io/dist/leaflet/iclient-leaflet.js"></script>
<script>
new L.supermap.WebPrintingJobLegendOptions({paramsNames});
// 弃用的写法
new SuperMap.WebPrintingJobLegendOptions(option);
</script>
common/iServer/WebPrintingJobLegendOptions.js, line 8
| Name | Type | Description | ||||||||||||||||||
|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
option |
Object |
参数。
|
- Version:
- 10.1.0
Members
-
customItemsWebPrintingJobCustomItems
-
自定义图例元素参数类。
-
layersWebPrintingJobLayers
-
图例的布局业务图层参数类。
-
picAsBase64string
-
图例的 Base64 位图片信息。
-
picAsUrlstring
-
图例的图片 URL 地址。
-
titlestring
-
图例名称。
Methods
-
destroy()
common/iServer/WebPrintingJobLegendOptions.js, line 55 -
释放资源,将引用资源的属性置空。
-
toJSON(){string}
common/iServer/WebPrintingJobLegendOptions.js, line 73 -
将 WebPrintingJobLegendOptions 对象转化为 JSON 字符串。
Returns:
Type Description string 转换后的 JSON 字符串。