new ol.supermap.WebPrintingJobService(url, options)
openlayers/services/WebPrintingJobService.js, line 9
Name | Type | Description | ||||||||||||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
url |
string |
资源根地址。请求打印地图服务的 URL 应为:http://{服务器地址}:{服务端口号}/iserver/services/webprinting/rest/webprinting/v1。 |
||||||||||||||||||||
options |
Object |
服务交互时所需的可选参数。
|
- Version:
- 10.1.0
Example
new ol.supermap.WebPrintingJobService(url)
.createWebPrintingJob(param,function(result){
//doSomething
})
Extends
Methods
-
createWebPrintingJob(params, callback)
openlayers/services/WebPrintingJobService.js, line 33 -
创建 Web 打印任务。
Name Type Description params
SuperMap.WebPrintingJobParameters 打印的相关参数类。
callback
RequestCallback 回调函数。
-
getLayoutTemplates(callback)
openlayers/services/WebPrintingJobService.js, line 108 -
查询 Web 打印服务所有可用的模板信息。
Name Type Description callback
RequestCallback 回调函数。
-
getPrintingJob(jobId, callback)
openlayers/services/WebPrintingJobService.js, line 60 -
获取 Web 打印输出文档任务。
Name Type Description jobId
String Web 打印输入文档任务 Id。
callback
RequestCallback 回调函数。
-
getPrintingJobResult(jobId, callback)
openlayers/services/WebPrintingJobService.js, line 84 -
获取 Web 打印任务的输出文档。
Name Type Description jobId
String Web 打印输入文档任务 Id。
callback
RequestCallback 回调函数。