@supermapgis/iclient-ol 11.2.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/README.md +56 -0
- package/control/ChangeTileVersion.js +438 -0
- package/control/Logo.js +97 -0
- package/control/ScaleLine.js +164 -0
- package/control/index.js +6 -0
- package/core/MapExtend.js +49 -0
- package/core/StyleUtils.js +1253 -0
- package/core/Util.js +500 -0
- package/core/index.js +6 -0
- package/css/ChangeTileVersion.css +347 -0
- package/css/index.js +5 -0
- package/dist/iclient-openlayers-es6.js +124963 -0
- package/dist/iclient-openlayers-es6.min.js +8 -0
- package/dist/iclient-openlayers.css +668 -0
- package/dist/iclient-openlayers.js +142946 -0
- package/dist/iclient-openlayers.min.css +8 -0
- package/dist/iclient-openlayers.min.js +8 -0
- package/index.js +9 -0
- package/mapping/BaiduMap.js +121 -0
- package/mapping/ImageSuperMapRest.js +252 -0
- package/mapping/ImageTileSuperMapRest.js +99 -0
- package/mapping/InitMap.js +150 -0
- package/mapping/SuperMapCloud.js +56 -0
- package/mapping/Tianditu.js +152 -0
- package/mapping/TileSuperMapRest.js +374 -0
- package/mapping/WebMap.js +5485 -0
- package/mapping/index.js +11 -0
- package/mapping/webmap/Util.js +176 -0
- package/mapping/webmap/config/MunicipalCenter.json +1 -0
- package/mapping/webmap/config/ProvinceCenter.json +1 -0
- package/mapping/webmap/config/SampleDataInfo.json +55 -0
- package/namespace.js +150 -0
- package/overlay/DataFlow.js +114 -0
- package/overlay/FGB.js +100 -0
- package/overlay/Graph.js +439 -0
- package/overlay/GraphMap.js +140 -0
- package/overlay/Graphic.js +588 -0
- package/overlay/HeatMap.js +450 -0
- package/overlay/Label.js +966 -0
- package/overlay/Mapv.js +149 -0
- package/overlay/Range.js +129 -0
- package/overlay/RankSymbol.js +94 -0
- package/overlay/Turf.js +299 -0
- package/overlay/Unique.js +124 -0
- package/overlay/VectorTileSuperMapRest.js +501 -0
- package/overlay/graphic/CanvasRenderer.js +177 -0
- package/overlay/graphic/CloverShape.js +133 -0
- package/overlay/graphic/Graphic.js +174 -0
- package/overlay/graphic/HitCloverShape.js +64 -0
- package/overlay/graphic/WebGLRenderer.js +356 -0
- package/overlay/graphic/index.js +9 -0
- package/overlay/index.js +21 -0
- package/overlay/mapv/MapvCanvasLayer.js +104 -0
- package/overlay/mapv/MapvLayer.js +413 -0
- package/overlay/mapv/index.js +5 -0
- package/overlay/theme/GeoFeature.js +275 -0
- package/overlay/theme/Theme.js +587 -0
- package/overlay/theme/ThemeFeature.js +46 -0
- package/overlay/theme/index.js +6 -0
- package/overlay/vectortile/DeafultCanvasStyle.js +125 -0
- package/overlay/vectortile/MapboxStyles.js +377 -0
- package/overlay/vectortile/StyleMap.js +252 -0
- package/overlay/vectortile/VectorTileStyles.js +554 -0
- package/overlay/vectortile/index.js +7 -0
- package/overlay/vectortile/olExtends.js +382 -0
- package/package.json +30 -0
- package/services/AddressMatchService.js +60 -0
- package/services/ChartService.js +97 -0
- package/services/DataFlowService.js +119 -0
- package/services/DatasetService.js +104 -0
- package/services/DatasourceService.js +76 -0
- package/services/FeatureService.js +260 -0
- package/services/FieldService.js +53 -0
- package/services/GeoprocessingService.js +157 -0
- package/services/GridCellInfosService.js +53 -0
- package/services/ImageCollectionService.js +93 -0
- package/services/ImageService.js +70 -0
- package/services/KnowledgeGraphService.js +96 -0
- package/services/LayerInfoService.js +85 -0
- package/services/MapService.js +85 -0
- package/services/MeasureService.js +77 -0
- package/services/NetworkAnalyst3DService.js +93 -0
- package/services/NetworkAnalystService.js +268 -0
- package/services/ProcessingService.js +507 -0
- package/services/QueryService.js +116 -0
- package/services/ServiceBase.js +26 -0
- package/services/SpatialAnalystService.js +466 -0
- package/services/ThemeService.js +50 -0
- package/services/TrafficTransferAnalystService.js +93 -0
- package/services/WebPrintingJobService.js +112 -0
- package/services/index.js +27 -0
|
@@ -0,0 +1,507 @@
|
|
|
1
|
+
/* Copyright© 2000 - 2024 SuperMap Software Co.Ltd. All rights reserved.
|
|
2
|
+
* This program are made available under the terms of the Apache License, Version 2.0
|
|
3
|
+
* which accompanies this distribution and is available at http://www.apache.org/licenses/LICENSE-2.0.html.*/
|
|
4
|
+
import { DataFormat } from '@supermapgis/iclient-common/REST';
|
|
5
|
+
import { ProcessingService as CommonProcessingService } from '@supermapgis/iclient-common/iServer/ProcessingService';
|
|
6
|
+
import {Util} from '../core/Util';
|
|
7
|
+
import {ServiceBase} from './ServiceBase';
|
|
8
|
+
|
|
9
|
+
/**
|
|
10
|
+
* @class ProcessingService
|
|
11
|
+
* @category iServer ProcessingService
|
|
12
|
+
* @classdesc 分布式分析相关服务类。分布式分析服务采用了分布式计算技术,可对超大体量空间数据集进行分布式空间分析和数据处理。
|
|
13
|
+
* 提供方法:缓冲区分析任务、核密度分析任务、叠加分析任务、单对象空间查询任务、点聚合分析任务、区域汇总分析任务、
|
|
14
|
+
* 拓扑检查分析任务、矢量裁剪分析任务等。
|
|
15
|
+
* @extends {ServiceBase}
|
|
16
|
+
* @example
|
|
17
|
+
* new ProcessingService(url,options).getKernelDensityJobs(function(result){
|
|
18
|
+
* //doSomething
|
|
19
|
+
* })
|
|
20
|
+
* @param {string} url - 服务地址。
|
|
21
|
+
* @param {Object} options - 参数。
|
|
22
|
+
* @param {string} [options.proxy] - 服务代理地址。
|
|
23
|
+
* @param {boolean} [options.withCredentials=false] - 请求是否携带 cookie。
|
|
24
|
+
* @param {boolean} [options.crossOrigin] - 是否允许跨域请求。
|
|
25
|
+
* @param {Object} [options.headers] - 请求头。
|
|
26
|
+
* @usage
|
|
27
|
+
*/
|
|
28
|
+
export class ProcessingService extends ServiceBase {
|
|
29
|
+
|
|
30
|
+
constructor(url, options) {
|
|
31
|
+
super(url, options);
|
|
32
|
+
this._processingService = new CommonProcessingService(url, options);
|
|
33
|
+
}
|
|
34
|
+
|
|
35
|
+
/**
|
|
36
|
+
* @function ProcessingService.prototype.getKernelDensityJobs
|
|
37
|
+
* @description 获取密度分析的列表。
|
|
38
|
+
* @param {RequestCallback} [callback] 回调函数,该参数未传时可通过返回的 promise 获取结果。
|
|
39
|
+
* @param {DataFormat} [resultFormat=DataFormat.GEOJSON] - 返回结果类型。
|
|
40
|
+
* @returns {Promise} Promise 对象。
|
|
41
|
+
*/
|
|
42
|
+
getKernelDensityJobs(callback, resultFormat) {
|
|
43
|
+
return this._processingService.getKernelDensityJobs(callback, resultFormat);
|
|
44
|
+
}
|
|
45
|
+
|
|
46
|
+
/**
|
|
47
|
+
* @function ProcessingService.prototype.getKernelDensityJob
|
|
48
|
+
* @description 获取指定 ID 的密度分析。
|
|
49
|
+
* @param {string} id - 空间分析的 ID。
|
|
50
|
+
* @param {RequestCallback} [callback] 回调函数,该参数未传时可通过返回的 promise 获取结果。
|
|
51
|
+
* @param {DataFormat} [resultFormat=DataFormat.GEOJSON] - 返回结果类型。
|
|
52
|
+
* @returns {Promise} Promise 对象。
|
|
53
|
+
*/
|
|
54
|
+
getKernelDensityJob(id, callback, resultFormat) {
|
|
55
|
+
return this._processingService.getKernelDensityJob(id, callback, resultFormat);
|
|
56
|
+
}
|
|
57
|
+
|
|
58
|
+
/**
|
|
59
|
+
* @function ProcessingService.prototype.addKernelDensityJob
|
|
60
|
+
* @description 新建密度分析。目前提供 1 种密度分析方法:核密度分析。<br>
|
|
61
|
+
* 核密度分析是指使用核函数来计算点或线邻域范围内的每单位面积量值。
|
|
62
|
+
* 其结果是中间值大周边值小的光滑曲面,在邻域边界处降为 0。
|
|
63
|
+
* 对于点对象,其核密度曲面与下方的平面所围成的空间的体积近似于此点的测量值;
|
|
64
|
+
* 对于线对象,其核密度曲面与下方的平面所围成的空间的体积近似于此线的测量值与线长度的乘积。
|
|
65
|
+
* 点或线的邻域叠加处,其密度值也相加。每个输出栅格的密度均为叠加在栅格上的所有核曲面值之和。
|
|
66
|
+
* @param {KernelDensityJobParameter} params - 核密度分析任务参数类。
|
|
67
|
+
* @param {RequestCallback} [callback] 回调函数,该参数未传时可通过返回的 promise 获取结果。
|
|
68
|
+
* @param {number} [seconds=1000] - 获取创建成功结果的时间间隔。
|
|
69
|
+
* @param {DataFormat} [resultFormat=DataFormat.GEOJSON] - 返回结果类型。
|
|
70
|
+
* @returns {Promise} Promise 对象。
|
|
71
|
+
*/
|
|
72
|
+
addKernelDensityJob(params, callback, seconds, resultFormat) {
|
|
73
|
+
params = this._processParams(params);
|
|
74
|
+
return this._processingService.addKernelDensityJob(params, callback, seconds, resultFormat);
|
|
75
|
+
}
|
|
76
|
+
|
|
77
|
+
/**
|
|
78
|
+
* @function ProcessingService.prototype.getKernelDensityJobState
|
|
79
|
+
* @description 获取密度分析的状态。
|
|
80
|
+
* @param {string} id - 密度分析的 ID。
|
|
81
|
+
* @returns {Object} 密度分析的状态
|
|
82
|
+
*/
|
|
83
|
+
getKernelDensityJobState(id) {
|
|
84
|
+
return this._processingService.getKernelDensityJobState(id)
|
|
85
|
+
}
|
|
86
|
+
|
|
87
|
+
/**
|
|
88
|
+
* @function ProcessingService.prototype.getSummaryMeshJobs
|
|
89
|
+
* @description 获取点聚合分析的列表。
|
|
90
|
+
* @param {RequestCallback} [callback] 回调函数,该参数未传时可通过返回的 promise 获取结果。
|
|
91
|
+
* @param {DataFormat} [resultFormat=DataFormat.GEOJSON] - 返回结果类型。
|
|
92
|
+
* @returns {Promise} Promise 对象。
|
|
93
|
+
*/
|
|
94
|
+
getSummaryMeshJobs(callback, resultFormat) {
|
|
95
|
+
return this._processingService.getSummaryMeshJobs(callback, resultFormat);
|
|
96
|
+
}
|
|
97
|
+
|
|
98
|
+
/**
|
|
99
|
+
* @function ProcessingService.prototype.getSummaryMeshJob
|
|
100
|
+
* @description 获取指定 ID 的点聚合分析。
|
|
101
|
+
* @param {string} id - 空间分析的 ID。
|
|
102
|
+
* @param {RequestCallback} [callback] 回调函数,该参数未传时可通过返回的 promise 获取结果。
|
|
103
|
+
* @param {DataFormat} [resultFormat=DataFormat.GEOJSON] - 返回结果类型。
|
|
104
|
+
* @returns {Promise} Promise 对象。
|
|
105
|
+
*/
|
|
106
|
+
getSummaryMeshJob(id, callback, resultFormat) {
|
|
107
|
+
return this._processingService.getSummaryMeshJob(id, callback, resultFormat);
|
|
108
|
+
}
|
|
109
|
+
|
|
110
|
+
/**
|
|
111
|
+
* @function ProcessingService.prototype.addSummaryMeshJob
|
|
112
|
+
* @description 新建点聚合分析。<br>
|
|
113
|
+
* 点聚合分析是指针对点数据集制作聚合图的一种空间分析作业。通过网格面或多边形对地图点要素进行划分,
|
|
114
|
+
* 然后,计算每个面对象内点要素的数量,并作为面对象的统计值,也可以引入点的权重信息,
|
|
115
|
+
* 考虑面对象内点的加权值作为面对象的统计值;最后基于面对象的统计值,按照统计值大小排序的结果,
|
|
116
|
+
* 通过色带对面对象进行色彩填充。
|
|
117
|
+
* @param {SummaryMeshJobParameter} params - 点聚合分析任务参数类。
|
|
118
|
+
* @param {RequestCallback} [callback] 回调函数,该参数未传时可通过返回的 promise 获取结果。
|
|
119
|
+
* @param {number} [seconds=1000] - 获取创建成功结果的时间间隔。
|
|
120
|
+
* @param {DataFormat} [resultFormat=DataFormat.GEOJSON] - 返回结果类型。
|
|
121
|
+
* @returns {Promise} Promise 对象。
|
|
122
|
+
*/
|
|
123
|
+
addSummaryMeshJob(params, callback, seconds, resultFormat) {
|
|
124
|
+
params = this._processParams(params);
|
|
125
|
+
return this._processingService.addSummaryMeshJob(params, callback, seconds, resultFormat);
|
|
126
|
+
}
|
|
127
|
+
|
|
128
|
+
/**
|
|
129
|
+
* @function ProcessingService.prototype.getSummaryMeshJobState
|
|
130
|
+
* @description 获取点聚合分析的状态。
|
|
131
|
+
* @param {string} id - 点聚合分析的 ID。
|
|
132
|
+
* @returns {Object} 点聚合分析的状态。
|
|
133
|
+
*/
|
|
134
|
+
getSummaryMeshJobState(id) {
|
|
135
|
+
return this._processingService.getSummaryMeshJobState(id)
|
|
136
|
+
}
|
|
137
|
+
|
|
138
|
+
/**
|
|
139
|
+
* @function ProcessingService.prototype.getQueryJobs
|
|
140
|
+
* @description 获取单对象空间查询分析的列表。
|
|
141
|
+
* @param {RequestCallback} [callback] 回调函数,该参数未传时可通过返回的 promise 获取结果。
|
|
142
|
+
* @param {DataFormat} [resultFormat=DataFormat.GEOJSON] - 返回结果类型。
|
|
143
|
+
* @returns {Promise} Promise 对象。
|
|
144
|
+
*/
|
|
145
|
+
getQueryJobs(callback, resultFormat) {
|
|
146
|
+
return this._processingService.getQueryJobs(callback, resultFormat);
|
|
147
|
+
}
|
|
148
|
+
|
|
149
|
+
/**
|
|
150
|
+
* @function ProcessingService.prototype.getQueryJob
|
|
151
|
+
* @description 获取指定 ID 的单对象空间查询分析。
|
|
152
|
+
* @param {string} id - 空间分析的 ID。
|
|
153
|
+
* @param {RequestCallback} [callback] 回调函数,该参数未传时可通过返回的 promise 获取结果。
|
|
154
|
+
* @param {DataFormat} [resultFormat=DataFormat.GEOJSON] - 返回结果类型。
|
|
155
|
+
* @returns {Promise} Promise 对象。
|
|
156
|
+
*/
|
|
157
|
+
getQueryJob(id, callback, resultFormat) {
|
|
158
|
+
return this._processingService.getQueryJob(id, callback, resultFormat);
|
|
159
|
+
}
|
|
160
|
+
|
|
161
|
+
/**
|
|
162
|
+
* @function ProcessingService.prototype.addQueryJob
|
|
163
|
+
* @description 新建单对象空间查询分析。<br>
|
|
164
|
+
* 单对象空间查询,指的是只支持查询对象数据集中有一个对象对被查询数据集做空间查询。
|
|
165
|
+
* 如果查询对象数据集中有多个对象,则默认用 SmID 最小的对象对被查询数据集做空间查询。
|
|
166
|
+
* @param {SingleObjectQueryJobsParameter} params - 单对象空间查询分析任务参数类。
|
|
167
|
+
* @param {RequestCallback} [callback] 回调函数,该参数未传时可通过返回的 promise 获取结果。
|
|
168
|
+
* @param {number} [seconds=1000] - 获取创建成功结果的时间间隔。
|
|
169
|
+
* @param {DataFormat} [resultFormat=DataFormat.GEOJSON] - 返回结果类型。
|
|
170
|
+
* @returns {Promise} Promise 对象。
|
|
171
|
+
*/
|
|
172
|
+
addQueryJob(params, callback, seconds, resultFormat) {
|
|
173
|
+
params = this._processParams(params);
|
|
174
|
+
return this._processingService.addQueryJob(params, callback, seconds, resultFormat);
|
|
175
|
+
}
|
|
176
|
+
|
|
177
|
+
/**
|
|
178
|
+
* @function ProcessingService.prototype.getQueryJobState
|
|
179
|
+
* @description 获取单对象空间查询分析的状态。
|
|
180
|
+
* @param {string} id - 单对象空间查询分析的 ID。
|
|
181
|
+
* @returns {Object} 单对象空间查询分析的状态。
|
|
182
|
+
*/
|
|
183
|
+
getQueryJobState(id) {
|
|
184
|
+
return this._processingService.getQueryJobState(id)
|
|
185
|
+
}
|
|
186
|
+
|
|
187
|
+
/**
|
|
188
|
+
* @function ProcessingService.prototype.getSummaryRegionJobs
|
|
189
|
+
* @description 获取区域汇总分析的列表。
|
|
190
|
+
* @param {RequestCallback} [callback] 回调函数,该参数未传时可通过返回的 promise 获取结果。
|
|
191
|
+
* @param {DataFormat} [resultFormat=DataFormat.GEOJSON] - 返回结果类型。
|
|
192
|
+
* @returns {Promise} Promise 对象。
|
|
193
|
+
*/
|
|
194
|
+
getSummaryRegionJobs(callback, resultFormat) {
|
|
195
|
+
return this._processingService.getSummaryRegionJobs(callback, resultFormat);
|
|
196
|
+
}
|
|
197
|
+
|
|
198
|
+
/**
|
|
199
|
+
* @function ProcessingService.prototype.getSummaryRegionJob
|
|
200
|
+
* @description 获取指定 ID 的区域汇总分析。
|
|
201
|
+
* @param {string} id - 区域汇总分析的 ID。
|
|
202
|
+
* @param {RequestCallback} [callback] 回调函数,该参数未传时可通过返回的 promise 获取结果。
|
|
203
|
+
* @param {DataFormat} [resultFormat=DataFormat.GEOJSON] - 返回结果类型。
|
|
204
|
+
* @returns {Promise} Promise 对象。
|
|
205
|
+
*/
|
|
206
|
+
getSummaryRegionJob(id, callback, resultFormat) {
|
|
207
|
+
return this._processingService.getSummaryRegionJob(id, callback, resultFormat);
|
|
208
|
+
}
|
|
209
|
+
|
|
210
|
+
/**
|
|
211
|
+
* @function ProcessingService.prototype.addSummaryRegionJob
|
|
212
|
+
* @description 新建区域汇总分析。<br>
|
|
213
|
+
* 区域汇总分析是指针对线数据集和面数据集制作聚合图的一种空间分析作业。
|
|
214
|
+
* 通过网格面或多边形对地图线或面要素进行划分,然后,以标准属性字段或权重字段对每个网格单元内线或面要素进行统计,
|
|
215
|
+
* 将统计结果作为该网格单元的统计值。最后按照网格单元统计值的大小进行排序,通过色带对网格单元进行色彩填充。
|
|
216
|
+
* @param {SummaryRegionJobParameter} params - 区域汇总分析任务参数类。
|
|
217
|
+
* @param {RequestCallback} [callback] 回调函数,该参数未传时可通过返回的 promise 获取结果。
|
|
218
|
+
* @param {number} [seconds=1000] - 获取创建成功结果的时间间隔。
|
|
219
|
+
* @param {DataFormat} [resultFormat=DataFormat.GEOJSON] - 返回结果类型。
|
|
220
|
+
* @returns {Promise} Promise 对象。
|
|
221
|
+
*/
|
|
222
|
+
addSummaryRegionJob(params, callback, seconds, resultFormat) {
|
|
223
|
+
params = this._processParams(params);
|
|
224
|
+
return this._processingService.addSummaryRegionJob(params, callback, seconds, resultFormat);
|
|
225
|
+
}
|
|
226
|
+
|
|
227
|
+
/**
|
|
228
|
+
* @function ProcessingService.prototype.getSummaryRegionJobState
|
|
229
|
+
* @description 获取区域汇总分析的状态。
|
|
230
|
+
* @param {string} id - 生成区域汇总分析的 ID。
|
|
231
|
+
* @returns {Object} 区域汇总分析的状态。
|
|
232
|
+
*/
|
|
233
|
+
getSummaryRegionJobState(id) {
|
|
234
|
+
return this._processingService.getSummaryRegionJobState(id)
|
|
235
|
+
}
|
|
236
|
+
|
|
237
|
+
/**
|
|
238
|
+
* @function ProcessingService.prototype.getVectorClipJobs
|
|
239
|
+
* @description 获取矢量裁剪分析的列表。
|
|
240
|
+
* @param {RequestCallback} [callback] 回调函数,该参数未传时可通过返回的 promise 获取结果。
|
|
241
|
+
* @param {DataFormat} [resultFormat=DataFormat.GEOJSON] - 返回结果类型。
|
|
242
|
+
* @returns {Promise} Promise 对象。
|
|
243
|
+
*/
|
|
244
|
+
getVectorClipJobs(callback, resultFormat) {
|
|
245
|
+
return this._processingService.getVectorClipJobs(callback, resultFormat);
|
|
246
|
+
}
|
|
247
|
+
|
|
248
|
+
/**
|
|
249
|
+
* @function ProcessingService.prototype.getVectorClipJob
|
|
250
|
+
* @description 获取指定 ID 的矢量裁剪分析。
|
|
251
|
+
* @param {string} id - 矢量裁剪分析的 ID。
|
|
252
|
+
* @param {RequestCallback} [callback] 回调函数,该参数未传时可通过返回的 promise 获取结果。
|
|
253
|
+
* @param {DataFormat} [resultFormat=DataFormat.GEOJSON] - 返回结果类型。
|
|
254
|
+
* @returns {Promise} Promise 对象。
|
|
255
|
+
*/
|
|
256
|
+
getVectorClipJob(id, callback, resultFormat) {
|
|
257
|
+
return this._processingService.getVectorClipJob(id, callback, resultFormat);
|
|
258
|
+
}
|
|
259
|
+
|
|
260
|
+
/**
|
|
261
|
+
* @function ProcessingService.prototype.addVectorClipJob
|
|
262
|
+
* @description 新建矢量裁剪分析。<br>
|
|
263
|
+
* 矢量裁剪是指对矢量数据集进行裁剪,包括内部裁剪和外部裁剪。
|
|
264
|
+
* 内部裁剪,则被裁剪的矢量数据集在裁剪区范围内的部分被保留到结果数据集中;
|
|
265
|
+
* 外部裁剪,则保留不在裁剪区范围内的那部分数据到结果数据集中。
|
|
266
|
+
* @param {VectorClipJobsParameter} params - 矢量裁剪分析任务参数类。
|
|
267
|
+
* @param {RequestCallback} [callback] 回调函数,该参数未传时可通过返回的 promise 获取结果。
|
|
268
|
+
* @param {number} [seconds=1000] - 获取创建成功结果的时间间隔。
|
|
269
|
+
* @param {DataFormat} [resultFormat=DataFormat.GEOJSON] - 返回结果类型。
|
|
270
|
+
* @returns {Promise} Promise 对象。
|
|
271
|
+
*/
|
|
272
|
+
addVectorClipJob(params, callback, seconds, resultFormat) {
|
|
273
|
+
params = this._processParams(params);
|
|
274
|
+
return this._processingService.addVectorClipJob(params, callback, seconds, resultFormat);
|
|
275
|
+
}
|
|
276
|
+
|
|
277
|
+
/**
|
|
278
|
+
* @function ProcessingService.prototype.getVectorClipJobState
|
|
279
|
+
* @description 获取矢量裁剪分析的状态。
|
|
280
|
+
* @param {number} id - 矢量裁剪分析的 ID。
|
|
281
|
+
* @returns {Object} 矢量裁剪分析的状态。
|
|
282
|
+
*/
|
|
283
|
+
getVectorClipJobState(id) {
|
|
284
|
+
return this._processingService.getVectorClipJobState(id)
|
|
285
|
+
}
|
|
286
|
+
|
|
287
|
+
/**
|
|
288
|
+
* @function ProcessingService.prototype.getOverlayGeoJobs
|
|
289
|
+
* @description 获取叠加分析的列表。
|
|
290
|
+
* @param {RequestCallback} [callback] 回调函数,该参数未传时可通过返回的 promise 获取结果。
|
|
291
|
+
* @param {DataFormat} [resultFormat=DataFormat.GEOJSON] - 返回结果类型。
|
|
292
|
+
* @returns {Promise} Promise 对象。
|
|
293
|
+
*/
|
|
294
|
+
getOverlayGeoJobs(callback, resultFormat) {
|
|
295
|
+
return this._processingService.getOverlayGeoJobs(callback, resultFormat);
|
|
296
|
+
}
|
|
297
|
+
|
|
298
|
+
/**
|
|
299
|
+
* @function ProcessingService.prototype.getOverlayGeoJob
|
|
300
|
+
* @description 获取指定 ID 的叠加分析。
|
|
301
|
+
* @param {string} id - 叠加分析的 ID。
|
|
302
|
+
* @param {RequestCallback} [callback] 回调函数,该参数未传时可通过返回的 promise 获取结果。
|
|
303
|
+
* @param {DataFormat} [resultFormat=DataFormat.GEOJSON] - 返回结果类型。
|
|
304
|
+
* @returns {Promise} Promise 对象。
|
|
305
|
+
*/
|
|
306
|
+
getOverlayGeoJob(id, callback, resultFormat) {
|
|
307
|
+
return this._processingService.getOverlayGeoJob(id, callback, resultFormat);
|
|
308
|
+
}
|
|
309
|
+
|
|
310
|
+
/**
|
|
311
|
+
* @function ProcessingService.prototype.addOverlayGeoJob
|
|
312
|
+
* @description 新建叠加分析。<br>
|
|
313
|
+
* 叠加分析是在统一空间参考系统下,通过对两个数据集进行的一系列集合运算,产生新数据集的过程。
|
|
314
|
+
* 在叠加分析中至少涉及到三个数据集,其中一个数据集的类型可以是点、线、面等,被称作源数据集;
|
|
315
|
+
* 另一个数据集是面数据集,被称作叠加对象数据集;还有一个数据集就是叠加结果数据集,包含叠加后数据的几何信息和属性信息。
|
|
316
|
+
* @param {OverlayGeoJobParameter} params - 叠加分析任务参数类。
|
|
317
|
+
* @param {RequestCallback} [callback] 回调函数,该参数未传时可通过返回的 promise 获取结果。
|
|
318
|
+
* @param {number} [seconds=1000] - 获取创建成功结果的时间间隔。
|
|
319
|
+
* @param {DataFormat} [resultFormat=DataFormat.GEOJSON] - 返回结果类型。
|
|
320
|
+
* @returns {Promise} Promise 对象。
|
|
321
|
+
*/
|
|
322
|
+
addOverlayGeoJob(params, callback, seconds, resultFormat) {
|
|
323
|
+
params = this._processParams(params);
|
|
324
|
+
return this._processingService.addOverlayGeoJob(params, callback, seconds, resultFormat);
|
|
325
|
+
}
|
|
326
|
+
|
|
327
|
+
/**
|
|
328
|
+
* @function ProcessingService.prototype.getoverlayGeoJobState
|
|
329
|
+
* @description 获取叠加分析的状态。
|
|
330
|
+
* @param {string} id - 叠加分析的 ID。
|
|
331
|
+
* @returns {Object} 叠加分析的状态。
|
|
332
|
+
*/
|
|
333
|
+
getoverlayGeoJobState(id) {
|
|
334
|
+
return this._processingService.getoverlayGeoJobState(id);
|
|
335
|
+
}
|
|
336
|
+
|
|
337
|
+
/**
|
|
338
|
+
* @function ProcessingService.prototype.getBuffersJobs
|
|
339
|
+
* @description 获取缓冲区分析的列表。
|
|
340
|
+
* @param {RequestCallback} [callback] 回调函数,该参数未传时可通过返回的 promise 获取结果。
|
|
341
|
+
* @param {DataFormat} [resultFormat=DataFormat.GEOJSON] - 返回结果类型。
|
|
342
|
+
* @returns {Promise} Promise 对象。
|
|
343
|
+
*/
|
|
344
|
+
getBuffersJobs(callback, resultFormat) {
|
|
345
|
+
return this._processingService.getBuffersJobs(callback, resultFormat);
|
|
346
|
+
}
|
|
347
|
+
|
|
348
|
+
/**
|
|
349
|
+
* @function ProcessingService.prototype.getBuffersJob
|
|
350
|
+
* @description 获取指定 ID 的缓冲区分析。
|
|
351
|
+
* @param {string} id - 缓冲区分析的 ID。
|
|
352
|
+
* @param {RequestCallback} [callback] 回调函数,该参数未传时可通过返回的 promise 获取结果。
|
|
353
|
+
* @param {DataFormat} [resultFormat=DataFormat.GEOJSON] - 返回结果类型。
|
|
354
|
+
* @returns {Promise} Promise 对象。
|
|
355
|
+
*/
|
|
356
|
+
getBuffersJob(id, callback, resultFormat) {
|
|
357
|
+
return this._processingService.getBuffersJob(id, callback, resultFormat);
|
|
358
|
+
}
|
|
359
|
+
|
|
360
|
+
/**
|
|
361
|
+
* @function ProcessingService.prototype.addBuffersJob
|
|
362
|
+
* @description 新建缓冲区分析。<br>
|
|
363
|
+
* 缓冲区分析是围绕空间对象,使用与空间对象的距离值(称为缓冲半径)作为半径,生成该对象的缓冲区域的过程,
|
|
364
|
+
* 其中缓冲半径可以是固定数值也可以是空间对象各自的属性值。缓冲区也可以理解为空间对象的影响或服务范围。
|
|
365
|
+
* @param {BuffersAnalystJobsParameter} params - 缓冲区分析任务参数类。
|
|
366
|
+
* @param {RequestCallback} [callback] 回调函数,该参数未传时可通过返回的 promise 获取结果。
|
|
367
|
+
* @param {number} [seconds=1000] - 获取创建成功结果的时间间隔。
|
|
368
|
+
* @param {DataFormat} [resultFormat=DataFormat.GEOJSON] - 返回结果类型。
|
|
369
|
+
* @returns {Promise} Promise 对象。
|
|
370
|
+
*/
|
|
371
|
+
addBuffersJob(params, callback, seconds, resultFormat) {
|
|
372
|
+
params = this._processParams(params);
|
|
373
|
+
return this._processingService.addBuffersJob(params, callback, seconds, resultFormat);
|
|
374
|
+
}
|
|
375
|
+
|
|
376
|
+
/**
|
|
377
|
+
* @function ProcessingService.prototype.getBuffersJobState
|
|
378
|
+
* @description 获取缓冲区分析的状态。
|
|
379
|
+
* @param {string} id - 缓冲区分析的 ID。
|
|
380
|
+
* @returns {Object} 缓冲区分析的状态。
|
|
381
|
+
*/
|
|
382
|
+
getBuffersJobState(id) {
|
|
383
|
+
return this._processingService.getBuffersJobState(id)
|
|
384
|
+
}
|
|
385
|
+
|
|
386
|
+
/**
|
|
387
|
+
* @function ProcessingService.prototype.getTopologyValidatorJobs
|
|
388
|
+
* @description 获取拓扑检查分析的列表。
|
|
389
|
+
* @param {RequestCallback} [callback] 回调函数,该参数未传时可通过返回的 promise 获取结果。
|
|
390
|
+
* @param {DataFormat} [resultFormat=DataFormat.GEOJSON] - 返回结果类型。
|
|
391
|
+
* @returns {Promise} Promise 对象。
|
|
392
|
+
*/
|
|
393
|
+
getTopologyValidatorJobs(callback, resultFormat) {
|
|
394
|
+
return this._processingService.getTopologyValidatorJobs(callback, resultFormat);
|
|
395
|
+
}
|
|
396
|
+
|
|
397
|
+
/**
|
|
398
|
+
* @function ProcessingService.prototype.getTopologyValidatorJob
|
|
399
|
+
* @description 获取指定 ID 的拓扑检查分析。
|
|
400
|
+
* @param {string} id - 拓扑检查分析的 ID。
|
|
401
|
+
* @param {RequestCallback} [callback] 回调函数,该参数未传时可通过返回的 promise 获取结果。
|
|
402
|
+
* @param {DataFormat} [resultFormat=DataFormat.GEOJSON] - 返回结果类型。
|
|
403
|
+
* @returns {Promise} Promise 对象。
|
|
404
|
+
*/
|
|
405
|
+
getTopologyValidatorJob(id, callback, resultFormat) {
|
|
406
|
+
return this._processingService.getTopologyValidatorJob(id, callback, resultFormat);
|
|
407
|
+
}
|
|
408
|
+
|
|
409
|
+
/**
|
|
410
|
+
* @function ProcessingService.prototype.addTopologyValidatorJob
|
|
411
|
+
* @description 新建拓扑检查分析。<br>
|
|
412
|
+
* 拓扑检查是指根据相应的拓扑规则对点、线和面数据进行检查,返回不符合规则的对象的一种操作作业。
|
|
413
|
+
* 支持以下种拓扑规则:面数据集内部无交叠、面数据集和面数据集无交叠、面数据集被面数据集包含、
|
|
414
|
+
* 面数据集被面数据集覆盖、线数据集内部无交叠、线数据集与线数据集无交叠、点数据集内部无重复点。
|
|
415
|
+
* @param {TopologyValidatorJobsParameter} params - 拓扑检查分析任务参数类。
|
|
416
|
+
* @param {RequestCallback} [callback] 回调函数,该参数未传时可通过返回的 promise 获取结果。
|
|
417
|
+
* @param {number} [seconds=1000] - 获取创建成功结果的时间间隔。
|
|
418
|
+
* @param {DataFormat} [resultFormat=DataFormat.GEOJSON] - 返回结果类型。
|
|
419
|
+
* @returns {Promise} Promise 对象。
|
|
420
|
+
*/
|
|
421
|
+
addTopologyValidatorJob(params, callback, seconds, resultFormat) {
|
|
422
|
+
params = this._processParams(params);
|
|
423
|
+
return this._processingService.addTopologyValidatorJob(params, callback, seconds, resultFormat);
|
|
424
|
+
}
|
|
425
|
+
|
|
426
|
+
/**
|
|
427
|
+
* @function ProcessingService.prototype.getTopologyValidatorJobState
|
|
428
|
+
* @description 获取拓扑检查分析的状态。
|
|
429
|
+
* @param {string} id - 拓扑检查分析的 ID。
|
|
430
|
+
* @returns {Object} 拓扑检查分析的状态。
|
|
431
|
+
*/
|
|
432
|
+
getTopologyValidatorJobState(id) {
|
|
433
|
+
return this._processingService.getTopologyValidatorJobState(id)
|
|
434
|
+
}
|
|
435
|
+
|
|
436
|
+
/**
|
|
437
|
+
* @function ProcessingService.prototype.getSummaryAttributesJobs
|
|
438
|
+
* @description 获取拓扑检查属性汇总分析的列表。
|
|
439
|
+
* @param {RequestCallback} [callback] 回调函数,该参数未传时可通过返回的 promise 获取结果。
|
|
440
|
+
* @param {DataFormat} [resultFormat=DataFormat.GEOJSON] - 返回结果类型。
|
|
441
|
+
* @returns {Promise} Promise 对象。
|
|
442
|
+
*/
|
|
443
|
+
getSummaryAttributesJobs(callback, resultFormat) {
|
|
444
|
+
return this._processingService.getSummaryAttributesJobs(callback, resultFormat);
|
|
445
|
+
}
|
|
446
|
+
|
|
447
|
+
/**
|
|
448
|
+
* @function ProcessingService.prototype.getSummaryAttributesJob
|
|
449
|
+
* @description 获取指定 ID 的属性汇总分析。
|
|
450
|
+
* @param {string} id - 属性汇总分析的 ID。
|
|
451
|
+
* @param {RequestCallback} [callback] 回调函数,该参数未传时可通过返回的 promise 获取结果。
|
|
452
|
+
* @param {DataFormat} [resultFormat=DataFormat.GEOJSON] - 返回结果类型。
|
|
453
|
+
* @returns {Promise} Promise 对象。
|
|
454
|
+
*/
|
|
455
|
+
getSummaryAttributesJob(id, callback, resultFormat) {
|
|
456
|
+
return this._processingService.getSummaryAttributesJob(id, callback, resultFormat);
|
|
457
|
+
}
|
|
458
|
+
|
|
459
|
+
/**
|
|
460
|
+
* @function ProcessingService.prototype.addSummaryAttributesJob
|
|
461
|
+
* @description 新建属性汇总分析。<br>
|
|
462
|
+
* 属性汇总分析是指对输入的数据集中所选择的属性进行汇总统计。
|
|
463
|
+
* 通过对输入的数据集设定分组字段、属性字段以及对属性字段需进行的统计模式,从而得到汇总统计的结果。
|
|
464
|
+
* @param {SummaryAttributesJobsParameter} params - 属性汇总分析任务参数类。
|
|
465
|
+
* @param {RequestCallback} [callback] 回调函数,该参数未传时可通过返回的 promise 获取结果。
|
|
466
|
+
* @param {number} [seconds=1000] - 获取创建成功结果的时间间隔。
|
|
467
|
+
* @param {DataFormat} [resultFormat=DataFormat.GEOJSON] - 返回结果类型。
|
|
468
|
+
* @returns {Promise} Promise 对象。
|
|
469
|
+
*/
|
|
470
|
+
addSummaryAttributesJob(params, callback, seconds, resultFormat) {
|
|
471
|
+
params = this._processParams(params);
|
|
472
|
+
return this._processingService.addSummaryAttributesJob(params, callback, seconds, resultFormat);
|
|
473
|
+
}
|
|
474
|
+
|
|
475
|
+
/**
|
|
476
|
+
* @function ProcessingService.prototype.getSummaryAttributesJobState
|
|
477
|
+
* @description 获取属性汇总分析的状态。
|
|
478
|
+
* @param {string} id - 属性汇总分析的 ID。
|
|
479
|
+
* @returns {Object} 属性汇总分析的状态。
|
|
480
|
+
*/
|
|
481
|
+
getSummaryAttributesJobState(id) {
|
|
482
|
+
return this._processingService.getSummaryAttributesJobState(id)
|
|
483
|
+
}
|
|
484
|
+
|
|
485
|
+
_processFormat(resultFormat) {
|
|
486
|
+
return (resultFormat) ? resultFormat : DataFormat.GEOJSON;
|
|
487
|
+
}
|
|
488
|
+
|
|
489
|
+
_processParams(params) {
|
|
490
|
+
if (!params) {
|
|
491
|
+
return {};
|
|
492
|
+
}
|
|
493
|
+
if (params.bounds) {
|
|
494
|
+
params.bounds = Util.toSuperMapBounds(params.bounds);
|
|
495
|
+
}
|
|
496
|
+
if (params.query) {
|
|
497
|
+
params.query = Util.toSuperMapBounds(params.query);
|
|
498
|
+
}
|
|
499
|
+
if (params.geometryQuery) {
|
|
500
|
+
params.geometryQuery = Util.toProcessingParam(params.geometryQuery);
|
|
501
|
+
}
|
|
502
|
+
if (params.geometryClip) {
|
|
503
|
+
params.geometryClip = Util.toProcessingParam(params.geometryClip);
|
|
504
|
+
}
|
|
505
|
+
return params;
|
|
506
|
+
}
|
|
507
|
+
}
|
|
@@ -0,0 +1,116 @@
|
|
|
1
|
+
/* Copyright© 2000 - 2024 SuperMap Software Co.Ltd. All rights reserved.
|
|
2
|
+
* This program are made available under the terms of the Apache License, Version 2.0
|
|
3
|
+
* which accompanies this distribution and is available at http://www.apache.org/licenses/LICENSE-2.0.html.*/
|
|
4
|
+
import { Bounds } from '@supermapgis/iclient-common/commontypes/Bounds';
|
|
5
|
+
import { Point as GeometryPoint } from '@supermapgis/iclient-common/commontypes/geometry/Point';
|
|
6
|
+
import {Util} from '../core/Util';
|
|
7
|
+
import {ServiceBase} from './ServiceBase';
|
|
8
|
+
import { QueryService as CommonQueryService } from '@supermapgis/iclient-common/iServer/QueryService';
|
|
9
|
+
import Point from 'ol/geom/Point';
|
|
10
|
+
import GeoJSON from 'ol/format/GeoJSON';
|
|
11
|
+
|
|
12
|
+
/**
|
|
13
|
+
* @class QueryService
|
|
14
|
+
* @category iServer Map QueryResults
|
|
15
|
+
* @classdesc 地图查询服务类。
|
|
16
|
+
* 提供:范围查询,SQL 查询,几何查询,距离查询。
|
|
17
|
+
* @modulecategory Services
|
|
18
|
+
* @extends {ServiceBase}
|
|
19
|
+
* @param {string} url - 服务地址。
|
|
20
|
+
* @param {Object} options - 参数。
|
|
21
|
+
* @param {string} [options.proxy] - 服务代理地址。
|
|
22
|
+
* @param {boolean} [options.withCredentials=false] - 请求是否携带 cookie。
|
|
23
|
+
* @param {boolean} [options.crossOrigin] - 是否允许跨域请求。
|
|
24
|
+
* @param {Object} [options.headers] - 请求头。
|
|
25
|
+
* @example
|
|
26
|
+
* new QueryService(url)
|
|
27
|
+
* .queryByBounds(param,function(result){
|
|
28
|
+
* //doSomething
|
|
29
|
+
* })
|
|
30
|
+
* @usage
|
|
31
|
+
*/
|
|
32
|
+
export class QueryService extends ServiceBase {
|
|
33
|
+
|
|
34
|
+
constructor(url, options) {
|
|
35
|
+
super(url, options);
|
|
36
|
+
this._queryService = new CommonQueryService(url, options);
|
|
37
|
+
}
|
|
38
|
+
|
|
39
|
+
/**
|
|
40
|
+
* @function QueryService.prototype.queryByBounds
|
|
41
|
+
* @description 范围查询地图服务。
|
|
42
|
+
* @param {QueryByBoundsParameters} params - 范围查询参数类。
|
|
43
|
+
* @param {RequestCallback} [callback] 回调函数,该参数未传时可通过返回的 promise 获取结果。
|
|
44
|
+
* @param {DataFormat} [resultFormat=DataFormat.GEOJSON] - 返回结果类型。
|
|
45
|
+
* @returns {Promise} Promise 对象。
|
|
46
|
+
*/
|
|
47
|
+
queryByBounds(params, callback, resultFormat) {
|
|
48
|
+
params = this._processParams(params);
|
|
49
|
+
return this._queryService.queryByBounds(params, callback, resultFormat);
|
|
50
|
+
}
|
|
51
|
+
|
|
52
|
+
/**
|
|
53
|
+
* @function QueryService.prototype.queryByDistance
|
|
54
|
+
* @description 地图距离查询服务。
|
|
55
|
+
* @param {QueryByDistanceParameters} params - 距离查询参数类。
|
|
56
|
+
* @param {RequestCallback} [callback] 回调函数,该参数未传时可通过返回的 promise 获取结果。
|
|
57
|
+
* @param {DataFormat} [resultFormat=DataFormat.GEOJSON] - 返回结果类型。
|
|
58
|
+
* @returns {Promise} Promise 对象。
|
|
59
|
+
*/
|
|
60
|
+
queryByDistance(params, callback, resultFormat) {
|
|
61
|
+
params = this._processParams(params);
|
|
62
|
+
return this._queryService.queryByDistance(params, callback, resultFormat);
|
|
63
|
+
}
|
|
64
|
+
|
|
65
|
+
/**
|
|
66
|
+
* @function QueryService.prototype.queryBySQL
|
|
67
|
+
* @description 地图 SQL 查询服务。
|
|
68
|
+
* @param {QueryBySQLParameters} params - SQL 查询参数类。
|
|
69
|
+
* @param {RequestCallback} [callback] 回调函数,该参数未传时可通过返回的 promise 获取结果。
|
|
70
|
+
* @param {DataFormat} [resultFormat=DataFormat.GEOJSON] - 返回结果类型。
|
|
71
|
+
* @returns {Promise} Promise 对象。
|
|
72
|
+
*/
|
|
73
|
+
queryBySQL(params, callback, resultFormat) {
|
|
74
|
+
params = this._processParams(params);
|
|
75
|
+
return this._queryService.queryBySQL(params, callback, resultFormat);
|
|
76
|
+
}
|
|
77
|
+
|
|
78
|
+
/**
|
|
79
|
+
* @function QueryService.prototype.queryByGeometry
|
|
80
|
+
* @description 地图几何查询服务。
|
|
81
|
+
* @param {QueryByGeometryParameters} params - 几何查询参数类。
|
|
82
|
+
* @param {RequestCallback} [callback] 回调函数,该参数未传时可通过返回的 promise 获取结果。
|
|
83
|
+
* @param {DataFormat} [resultFormat=DataFormat.GEOJSON] - 返回结果类型。
|
|
84
|
+
* @returns {Promise} Promise 对象。
|
|
85
|
+
*/
|
|
86
|
+
queryByGeometry(params, callback, resultFormat) {
|
|
87
|
+
params = this._processParams(params);
|
|
88
|
+
return this._queryService.queryByGeometry(params, callback, resultFormat);
|
|
89
|
+
}
|
|
90
|
+
|
|
91
|
+
_processParams(params) {
|
|
92
|
+
if (!params) {
|
|
93
|
+
return {};
|
|
94
|
+
}
|
|
95
|
+
params.returnContent = (params.returnContent == null) ? true : params.returnContent;
|
|
96
|
+
if (params.queryParams && !Util.isArray(params.queryParams)) {
|
|
97
|
+
params.queryParams = [params.queryParams];
|
|
98
|
+
}
|
|
99
|
+
if (params.bounds) {
|
|
100
|
+
params.bounds = new Bounds(
|
|
101
|
+
params.bounds[0],
|
|
102
|
+
params.bounds[1],
|
|
103
|
+
params.bounds[2],
|
|
104
|
+
params.bounds[3]
|
|
105
|
+
);
|
|
106
|
+
}
|
|
107
|
+
if (params.geometry) {
|
|
108
|
+
if (params.geometry instanceof Point) {
|
|
109
|
+
params.geometry = new GeometryPoint(params.geometry.getCoordinates()[0], params.geometry.getCoordinates()[1]);
|
|
110
|
+
} else {
|
|
111
|
+
params.geometry = Util.toSuperMapGeometry(JSON.parse((new GeoJSON()).writeGeometry(params.geometry)));
|
|
112
|
+
}
|
|
113
|
+
}
|
|
114
|
+
return params;
|
|
115
|
+
}
|
|
116
|
+
}
|
|
@@ -0,0 +1,26 @@
|
|
|
1
|
+
/* Copyright© 2000 - 2024 SuperMap Software Co.Ltd. All rights reserved.
|
|
2
|
+
* This program are made available under the terms of the Apache License, Version 2.0
|
|
3
|
+
* which accompanies this distribution and is available at http://www.apache.org/licenses/LICENSE-2.0.html.*/
|
|
4
|
+
import Observable from 'ol/Observable';
|
|
5
|
+
|
|
6
|
+
/**
|
|
7
|
+
* @class ServiceBase
|
|
8
|
+
* @category iServer Core
|
|
9
|
+
* @classdesc ol.supermap 的服务基类。
|
|
10
|
+
* @param {string} url - 服务地址。
|
|
11
|
+
* @param {Object} options - 参数。
|
|
12
|
+
* @param {string} [options.proxy] - 服务代理地址。
|
|
13
|
+
* @param {boolean} [options.withCredentials=false] - 请求是否携带 cookie。
|
|
14
|
+
* @param {boolean} [options.crossOrigin] - 是否允许跨域请求。
|
|
15
|
+
* @param {Object} [options.headers] - 请求头。
|
|
16
|
+
* @extends {ol.Observable}
|
|
17
|
+
* @usage
|
|
18
|
+
*/
|
|
19
|
+
export class ServiceBase extends Observable {
|
|
20
|
+
constructor(url, options) {
|
|
21
|
+
super(url, options);
|
|
22
|
+
this.options = options || {};
|
|
23
|
+
this.url = url;
|
|
24
|
+
this.dispatchEvent({type: 'initialized', value: this});
|
|
25
|
+
}
|
|
26
|
+
}
|