new WebPrintingJobContent(option)
Usage
import { WebPrintingJobContent } from '@supermapgis/iclient-leaflet';
new WebPrintingJobContent(option);<script type="text/javascript" src="https://iclient.supermap.io/dist/leaflet/iclient-leaflet.js"></script>
<script>
new L.supermap.WebPrintingJobContent({paramsNames});
// 弃用的写法
new SuperMap.WebPrintingJobContent(option);
</script>
common/iServer/WebPrintingJobContent.js, line 6
| Name | Type | Description | |||||||||||||||
|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
option |
Object |
参数。
|
- Version:
- 10.1.0
API Relations
As constructor parameter:
WebPrintingJobParameters.
Members
-
tokenstring
-
如果待打印的是 SuperMap iPortal 用户私有的 WebMap,需要提供 SuperMap iPortal 用户的 token。
-
typestring
-
Web 打印内容支持的类型。目前支持的类型:WEBMAP。
-
urlstring
-
待打印的 SuperMap iPortal WebMap 的 URL 地址。
-
valueWebMapSummaryObject
-
传递的是一个符合 SuperMap WebMap 规范的 WebMap 的 JSON 表达,也可以是一个完整的 SuperMap iPortal 数据上图制作的 WebMap 的 JSON 表达。
Methods
-
destroy()
common/iServer/WebPrintingJobContent.js, line 47 -
释放资源,将引用资源的属性置空。
-
toJSON(){string}
common/iServer/WebPrintingJobContent.js, line 58 -
将 WebPrintingJobContent 对象转化为 JSON 字符串。
Returns:
Type Description string 转换后的 JSON 字符串。