new WebPrintingJobService(url, options)
Usage
import { WebPrintingJobService } from '@supermapgis/iclient-mapboxgl';
new WebPrintingJobService(url, options);<script type="text/javascript" src="https://iclient.supermap.io/dist/mapboxgl/iclient-mapboxgl.js"></script>
<script>
new mapboxgl.supermap.WebPrintingJobService({paramsNames});
</script>
mapboxgl/services/WebPrintingJobService.js, line 10
| Name | Type | Description | |||||||||||||||
|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
url |
string |
Web 打印服务地址。请求打印地图服务的 URL 应为:http://{服务器地址}:{服务端口号}/iserver/services/webprinting/rest/webprinting/v1。 |
|||||||||||||||
options |
Object |
参数。
|
- Version:
- 10.1.0
Example
new WebPrintingJobService(url)
.createWebPrintingJob(param,function(result){
//doSomething
})
Extends
WebPrintingJobService
-> ServiceBase
Events
-
inherited initialized
mapboxgl/services/ServiceBase.js, line 32 -
构造函数构造成功之后触发。
Properties:
Name Type Description thisObject this 对象。
Methods
-
createWebPrintingJob(params, callback){Promise}
mapboxgl/services/WebPrintingJobService.js, line 37 -
创建 Web 打印任务。
Name Type Description paramsWebPrintingJobParameters Web 打印参数类。
callbackRequestCallback 可选 回调函数,该参数未传时可通过返回的 promise 获取结果。
Returns:
Type Description Promise Promise 对象。 -
getLayoutTemplates(callback){Promise}
mapboxgl/services/WebPrintingJobService.js, line 73 -
查询 Web 打印服务所有可用的模板信息。
Name Type Description callbackRequestCallback 可选 回调函数,该参数未传时可通过返回的 promise 获取结果。
Returns:
Type Description Promise Promise 对象。 -
getPrintingJob(jobId, callback){Promise}
mapboxgl/services/WebPrintingJobService.js, line 51 -
获取 Web 打印输出文档任务。
Name Type Description jobIdstring Web 打印输入文档任务 ID。
callbackRequestCallback 可选 回调函数,该参数未传时可通过返回的 promise 获取结果。
Returns:
Type Description Promise Promise 对象。 -
getPrintingJobResult(jobId, callback){Promise}
mapboxgl/services/WebPrintingJobService.js, line 62 -
获取 Web 打印任务的输出文档。
Name Type Description jobIdstring Web 打印输入文档任务 ID。
callbackRequestCallback 可选 回调函数,该参数未传时可通过返回的 promise 获取结果。
Returns:
Type Description Promise Promise 对象。