new WebPrintingJobCustomItems(option)
Usage
import { WebPrintingJobCustomItems } from '@supermapgis/iclient-leaflet';
new WebPrintingJobCustomItems(option);<script type="text/javascript" src="https://iclient.supermap.io/dist/leaflet/iclient-leaflet.js"></script>
<script>
new L.supermap.WebPrintingJobCustomItems({paramsNames});
// 弃用的写法
new SuperMap.WebPrintingJobCustomItems(option);
</script>
common/iServer/WebPrintingJobCustomItems.js, line 6
| Name | Type | Description | ||||||||||||
|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
option |
Object |
参数。
|
- Version:
- 10.1.0
API Relations
As constructor parameter:
WebPrintingJobLegendOptions.
Members
-
namestring
-
图例元素的名称。
-
picAsBase64string
-
图例元素 Base64 格式图片。
-
picAsUrlstring
-
图例元素图片的获取地址。
Methods
-
destroy()
common/iServer/WebPrintingJobCustomItems.js, line 40 -
释放资源,将引用资源的属性置空。
-
toJSON(){string}
common/iServer/WebPrintingJobCustomItems.js, line 51 -
将 WebPrintingJobCustomItems 对象转化为 JSON 字符串。
Returns:
Type Description string 转换后的 JSON 字符串。