@mapgis/webclient-common 17.2.1 → 17.2.3
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 +18 -2
- package/dist/es5/webclient-common.min.js +3 -3
- package/dist/webclient-common-es6.min.js +3 -3
- package/documention/ArcGISMapImageSubLayer.html +14 -14
- package/documention/ArcGISTileLayer.html +14 -14
- package/documention/BaseScene.html +1106 -0
- package/documention/BaseView.html +18 -18
- package/documention/Callout3D.html +5 -5
- package/documention/Cesium3DTilesCacheLayer.html +18 -18
- package/documention/Circle.html +5 -5
- package/documention/Collection.html +198 -4
- package/documention/Extent.html +5 -5
- package/documention/ExtrudeSymbol3DLayer.html +5 -5
- package/documention/FeatureLayer.html +14 -14
- package/documention/FillSymbol.html +5 -5
- package/documention/FillSymbol3DLayer.html +5 -5
- package/documention/GeoJSONLayer.html +14 -14
- package/documention/Geometry.html +5 -5
- package/documention/GraphicsLayer.html +14 -14
- package/documention/GroupLayer.html +14 -14
- package/documention/IGSMapImageLayer.html +1 -3
- package/documention/IGSMapImageSubLayer.html +14 -14
- package/documention/IGSSceneLayer.html +5 -5
- package/documention/IGSSceneSubLayer.html +14 -14
- package/documention/IGSTileLayer.html +14 -14
- package/documention/IGSVectorTileLayer.html +1 -34
- package/documention/ISScene.html +1336 -0
- package/documention/ISSceneLayer.html +2028 -0
- package/documention/ISSceneServer.html +2234 -0
- package/documention/ISSceneSubLayer.html +2626 -0
- package/documention/IconSymbol3DLayer.html +5 -5
- package/documention/LabelClass.html +5 -5
- package/documention/Layer.html +13 -13
- package/documention/LineCallout3D.html +5 -5
- package/documention/LineString.html +5 -5
- package/documention/LineSymbol.html +5 -5
- package/documention/LineSymbol3DLayer.html +5 -5
- package/documention/M3DModelCacheLayer.html +19 -19
- package/documention/MapGISTextSymbol.html +5 -5
- package/documention/MapImageLayer.html +28 -28
- package/documention/MapView.html +19 -19
- package/documention/MarkerSymbol.html +5 -5
- package/documention/MultiLineString.html +5 -5
- package/documention/MultiPoint.html +5 -5
- package/documention/MultiPolygon.html +5 -5
- package/documention/OGCLayer.html +14 -14
- package/documention/ObjectSymbol3DLayer.html +5 -5
- package/documention/OverlayLayer.html +14 -14
- package/documention/PathSymbol3DLayer.html +5 -5
- package/documention/PictureFillSymbol.html +5 -5
- package/documention/Point.html +5 -5
- package/documention/PointSymbol3D.html +1 -1
- package/documention/Polygon.html +5 -5
- package/documention/S3MTilesCacheLayer.html +7726 -0
- package/documention/SceneLayer.html +14 -14
- package/documention/SceneView.html +19 -19
- package/documention/SimpleFillSymbol.html +5 -5
- package/documention/SketchBaseDrawTool.html +5 -5
- package/documention/SketchCircleDrawTool.html +5 -5
- package/documention/SketchEditor.html +2 -2
- package/documention/SketchEditorCesium.html +2 -2
- package/documention/SketchEditorVideo.html +2 -2
- package/documention/SketchEditorVideoBase.html +3 -3
- package/documention/SketchExtentDrawTool.html +5 -5
- package/documention/SketchFreehandPolygonDrawTool.html +5 -5
- package/documention/SketchFreehandPolylineDrawTool.html +5 -5
- package/documention/SketchPointDrawTool.html +5 -5
- package/documention/SketchPolygonDrawTool.html +10 -10
- package/documention/SketchPolylineDrawTool.html +10 -10
- package/documention/SubLayer.html +13 -13
- package/documention/Symbol.html +5 -5
- package/documention/Symbol3DLayer.html +5 -5
- package/documention/Symbol3DVerticalOffset.html +5 -5
- package/documention/TerrainCacheLayer.html +14 -14
- package/documention/TextSymbol.html +5 -5
- package/documention/TextSymbol3DLayer.html +5 -5
- package/documention/TileLayer.html +14 -14
- package/documention/UnknownLayer.html +14 -14
- package/documention/VectorTileGroupSubLayer.html +14 -14
- package/documention/VectorTileLayer.html +14 -14
- package/documention/VectorTileSubLayer.html +14 -14
- package/documention/VideoMapView.html +4 -4
- package/documention/WFSLayer.html +14 -14
- package/documention/WMSLayer.html +14 -14
- package/documention/WMSSubLayer.html +14 -14
- package/documention/WMTSLayer.html +14 -14
- package/documention/WMTSSubLayer.html +14 -14
- package/documention/WaterSymbol3DLayer.html +5 -5
- package/documention/WebTileLayer.html +14 -14
- package/documention/index.html +38 -38
- package/package.json +1 -1
|
@@ -0,0 +1,2234 @@
|
|
|
1
|
+
<header id="page-title" class="page-title">
|
|
2
|
+
|
|
3
|
+
<span class="page-title-main">类名</span>
|
|
4
|
+
<span class="page-title-sub">ISSceneServer</span>
|
|
5
|
+
|
|
6
|
+
</header>
|
|
7
|
+
|
|
8
|
+
|
|
9
|
+
|
|
10
|
+
|
|
11
|
+
|
|
12
|
+
<section>
|
|
13
|
+
|
|
14
|
+
<article>
|
|
15
|
+
<div class="container-overview">
|
|
16
|
+
|
|
17
|
+
|
|
18
|
+
<div class='vertical-section'>
|
|
19
|
+
<div class="members">
|
|
20
|
+
<div class="member">
|
|
21
|
+
|
|
22
|
+
|
|
23
|
+
|
|
24
|
+
|
|
25
|
+
<h4 class="name" id="ISSceneServer">
|
|
26
|
+
<a class="href-link" href="#ISSceneServer">#</a>
|
|
27
|
+
|
|
28
|
+
<span class="code-name" id="ISSceneServer" style="font-size:30px">
|
|
29
|
+
|
|
30
|
+
new ISSceneServer<span class="signature">(options)</span>
|
|
31
|
+
|
|
32
|
+
</span>
|
|
33
|
+
</h4>
|
|
34
|
+
|
|
35
|
+
|
|
36
|
+
|
|
37
|
+
<div class="description">
|
|
38
|
+
<p>场景服务</p>
|
|
39
|
+
</div>
|
|
40
|
+
|
|
41
|
+
|
|
42
|
+
|
|
43
|
+
|
|
44
|
+
|
|
45
|
+
|
|
46
|
+
|
|
47
|
+
|
|
48
|
+
|
|
49
|
+
|
|
50
|
+
<h4>参数</h4>
|
|
51
|
+
|
|
52
|
+
<div class="table-container">
|
|
53
|
+
<table class="params table">
|
|
54
|
+
<thead>
|
|
55
|
+
<tr>
|
|
56
|
+
|
|
57
|
+
<th>名称</th>
|
|
58
|
+
|
|
59
|
+
|
|
60
|
+
<th>类型</th>
|
|
61
|
+
|
|
62
|
+
|
|
63
|
+
|
|
64
|
+
<th class="last">描述</th>
|
|
65
|
+
</tr>
|
|
66
|
+
</thead>
|
|
67
|
+
|
|
68
|
+
<tbody>
|
|
69
|
+
|
|
70
|
+
|
|
71
|
+
|
|
72
|
+
<tr class="deep-level-0">
|
|
73
|
+
|
|
74
|
+
<td class="name"><code>options</code></td>
|
|
75
|
+
|
|
76
|
+
|
|
77
|
+
<td class="type">
|
|
78
|
+
|
|
79
|
+
|
|
80
|
+
<span class="param-type">
|
|
81
|
+
|
|
82
|
+
Object
|
|
83
|
+
|
|
84
|
+
</span>
|
|
85
|
+
|
|
86
|
+
|
|
87
|
+
|
|
88
|
+
|
|
89
|
+
</td>
|
|
90
|
+
|
|
91
|
+
|
|
92
|
+
|
|
93
|
+
<td class="description last"><p>构造参数</p></td>
|
|
94
|
+
</tr>
|
|
95
|
+
|
|
96
|
+
|
|
97
|
+
|
|
98
|
+
|
|
99
|
+
<tr class="deep-level-1">
|
|
100
|
+
|
|
101
|
+
<td class="name"><code>url</code></td>
|
|
102
|
+
|
|
103
|
+
|
|
104
|
+
<td class="type">
|
|
105
|
+
|
|
106
|
+
|
|
107
|
+
<span class="param-type">
|
|
108
|
+
|
|
109
|
+
String
|
|
110
|
+
|
|
111
|
+
</span>
|
|
112
|
+
|
|
113
|
+
|
|
114
|
+
|
|
115
|
+
|
|
116
|
+
</td>
|
|
117
|
+
|
|
118
|
+
|
|
119
|
+
|
|
120
|
+
<td class="description last"><p>服务基地址
|
|
121
|
+
服务基地址格式:http://{ip}:{port}/iserver/services/{服务名}/rest/realspace<br/></p></td>
|
|
122
|
+
</tr>
|
|
123
|
+
|
|
124
|
+
|
|
125
|
+
|
|
126
|
+
|
|
127
|
+
|
|
128
|
+
|
|
129
|
+
|
|
130
|
+
</tbody>
|
|
131
|
+
</table>
|
|
132
|
+
</div>
|
|
133
|
+
|
|
134
|
+
|
|
135
|
+
|
|
136
|
+
|
|
137
|
+
|
|
138
|
+
|
|
139
|
+
<dl class="details">
|
|
140
|
+
|
|
141
|
+
|
|
142
|
+
|
|
143
|
+
|
|
144
|
+
|
|
145
|
+
|
|
146
|
+
|
|
147
|
+
|
|
148
|
+
|
|
149
|
+
|
|
150
|
+
|
|
151
|
+
|
|
152
|
+
|
|
153
|
+
|
|
154
|
+
|
|
155
|
+
|
|
156
|
+
|
|
157
|
+
|
|
158
|
+
|
|
159
|
+
|
|
160
|
+
|
|
161
|
+
|
|
162
|
+
|
|
163
|
+
|
|
164
|
+
|
|
165
|
+
|
|
166
|
+
|
|
167
|
+
|
|
168
|
+
|
|
169
|
+
|
|
170
|
+
|
|
171
|
+
</dl>
|
|
172
|
+
|
|
173
|
+
|
|
174
|
+
|
|
175
|
+
|
|
176
|
+
|
|
177
|
+
|
|
178
|
+
|
|
179
|
+
|
|
180
|
+
|
|
181
|
+
|
|
182
|
+
|
|
183
|
+
|
|
184
|
+
|
|
185
|
+
|
|
186
|
+
|
|
187
|
+
|
|
188
|
+
|
|
189
|
+
|
|
190
|
+
|
|
191
|
+
|
|
192
|
+
|
|
193
|
+
|
|
194
|
+
|
|
195
|
+
<h5>示例</h5>
|
|
196
|
+
|
|
197
|
+
<p class="code-caption"><h5>SceneServer</h5></p>
|
|
198
|
+
|
|
199
|
+
|
|
200
|
+
<pre class="prettyprint"><code>// ES5引入方式
|
|
201
|
+
const { ISSceneServer } = zondy.service
|
|
202
|
+
// ES6引入方式
|
|
203
|
+
import { ISSceneServer } from "@mapgis/webclient-common
|
|
204
|
+
const sceneServer = new ISSceneServer({
|
|
205
|
+
url: ''
|
|
206
|
+
});</code></pre>
|
|
207
|
+
|
|
208
|
+
|
|
209
|
+
|
|
210
|
+
|
|
211
|
+
</div>
|
|
212
|
+
</div>
|
|
213
|
+
</div>
|
|
214
|
+
|
|
215
|
+
|
|
216
|
+
</div>
|
|
217
|
+
|
|
218
|
+
|
|
219
|
+
<h3 class="subsection-title">继承关系</h3>
|
|
220
|
+
|
|
221
|
+
|
|
222
|
+
|
|
223
|
+
|
|
224
|
+
<ul>
|
|
225
|
+
<li><a link="BaseServer.html" onclick="getTypeHTML(event)" class="mapgis-link-name" title="BaseServer" BaseServer.html>BaseServer</a></li>
|
|
226
|
+
</ul>
|
|
227
|
+
|
|
228
|
+
|
|
229
|
+
|
|
230
|
+
|
|
231
|
+
|
|
232
|
+
|
|
233
|
+
|
|
234
|
+
|
|
235
|
+
|
|
236
|
+
|
|
237
|
+
|
|
238
|
+
|
|
239
|
+
|
|
240
|
+
|
|
241
|
+
|
|
242
|
+
<div class='vertical-section'>
|
|
243
|
+
<h3 id='member'>成员变量</h3>
|
|
244
|
+
<h4 style="margin-top: 20px;margin-bottom: 20px;">成员变量概述</h4>
|
|
245
|
+
<div class="table-container">
|
|
246
|
+
<table class="params table">
|
|
247
|
+
<thead>
|
|
248
|
+
<tr>
|
|
249
|
+
<th>名称</th>
|
|
250
|
+
<th>类型</th>
|
|
251
|
+
<th>描述</th>
|
|
252
|
+
</tr>
|
|
253
|
+
</thead>
|
|
254
|
+
<tbody>
|
|
255
|
+
|
|
256
|
+
<tr class="deep-level-0">
|
|
257
|
+
<td class="name"><code><a href="#clientId">clientId</a></code></td>
|
|
258
|
+
<td class="name">
|
|
259
|
+
<code>
|
|
260
|
+
|
|
261
|
+
<span class="param-type">
|
|
262
|
+
|
|
263
|
+
Boolean
|
|
264
|
+
|
|
265
|
+
</span>
|
|
266
|
+
|
|
267
|
+
|
|
268
|
+
|
|
269
|
+
</code>
|
|
270
|
+
</td>
|
|
271
|
+
<td class="name"><code><p>客户端id</p></code></td>
|
|
272
|
+
</tr>
|
|
273
|
+
|
|
274
|
+
<tr class="deep-level-0">
|
|
275
|
+
<td class="name"><code><a href="#enableGlobeFetch">enableGlobeFetch</a></code></td>
|
|
276
|
+
<td class="name">
|
|
277
|
+
<code>
|
|
278
|
+
|
|
279
|
+
<span class="param-type">
|
|
280
|
+
|
|
281
|
+
Boolean
|
|
282
|
+
|
|
283
|
+
</span>
|
|
284
|
+
|
|
285
|
+
|
|
286
|
+
|
|
287
|
+
</code>
|
|
288
|
+
</td>
|
|
289
|
+
<td class="name"><code><p>是否使用确据唯一的fetch对象,默认为true,当设为false时,会使用自己私有的fetch对象,所有的请求设置不会影响全局</p></code></td>
|
|
290
|
+
</tr>
|
|
291
|
+
|
|
292
|
+
<tr class="deep-level-0">
|
|
293
|
+
<td class="name"><code><a href="#headers">headers</a></code></td>
|
|
294
|
+
<td class="name">
|
|
295
|
+
<code>
|
|
296
|
+
|
|
297
|
+
<span class="param-type">
|
|
298
|
+
|
|
299
|
+
String
|
|
300
|
+
|
|
301
|
+
</span>
|
|
302
|
+
|
|
303
|
+
|
|
304
|
+
|
|
305
|
+
</code>
|
|
306
|
+
</td>
|
|
307
|
+
<td class="name"><code><p>请求头参数</p></code></td>
|
|
308
|
+
</tr>
|
|
309
|
+
|
|
310
|
+
<tr class="deep-level-0">
|
|
311
|
+
<td class="name"><code><a href="#requestInterceptor">requestInterceptor</a></code></td>
|
|
312
|
+
<td class="name">
|
|
313
|
+
<code>
|
|
314
|
+
|
|
315
|
+
<span class="param-type">
|
|
316
|
+
|
|
317
|
+
function
|
|
318
|
+
|
|
319
|
+
</span>
|
|
320
|
+
|
|
321
|
+
|
|
322
|
+
|
|
323
|
+
</code>
|
|
324
|
+
</td>
|
|
325
|
+
<td class="name"><code><p>请求发送拦截器</p></code></td>
|
|
326
|
+
</tr>
|
|
327
|
+
|
|
328
|
+
<tr class="deep-level-0">
|
|
329
|
+
<td class="name"><code><a href="#requestTimeout">requestTimeout</a></code></td>
|
|
330
|
+
<td class="name">
|
|
331
|
+
<code>
|
|
332
|
+
|
|
333
|
+
<span class="param-type">
|
|
334
|
+
|
|
335
|
+
String
|
|
336
|
+
|
|
337
|
+
</span>
|
|
338
|
+
|
|
339
|
+
|
|
340
|
+
|
|
341
|
+
</code>
|
|
342
|
+
</td>
|
|
343
|
+
<td class="name"><code><p>请求超时时间,默认45000ms,即45s</p></code></td>
|
|
344
|
+
</tr>
|
|
345
|
+
|
|
346
|
+
<tr class="deep-level-0">
|
|
347
|
+
<td class="name"><code><a href="#responseInterceptor">responseInterceptor</a></code></td>
|
|
348
|
+
<td class="name">
|
|
349
|
+
<code>
|
|
350
|
+
|
|
351
|
+
<span class="param-type">
|
|
352
|
+
|
|
353
|
+
function
|
|
354
|
+
|
|
355
|
+
</span>
|
|
356
|
+
|
|
357
|
+
|
|
358
|
+
|
|
359
|
+
</code>
|
|
360
|
+
</td>
|
|
361
|
+
<td class="name"><code><p>请求响应拦截器</p></code></td>
|
|
362
|
+
</tr>
|
|
363
|
+
|
|
364
|
+
<tr class="deep-level-0">
|
|
365
|
+
<td class="name"><code><a href="#tokenAttachType">tokenAttachType</a></code></td>
|
|
366
|
+
<td class="name">
|
|
367
|
+
<code>
|
|
368
|
+
|
|
369
|
+
<span class="param-type">
|
|
370
|
+
|
|
371
|
+
<a link="TokenAttachType.html" onclick="getTypeHTML(event)" class="mapgis-link-name" title="TokenAttachType" global.html#TokenAttachType>TokenAttachType</a>
|
|
372
|
+
|
|
373
|
+
</span>
|
|
374
|
+
|
|
375
|
+
|
|
376
|
+
|
|
377
|
+
</code>
|
|
378
|
+
</td>
|
|
379
|
+
<td class="name"><code><p>指定token附加到何处</p></code></td>
|
|
380
|
+
</tr>
|
|
381
|
+
|
|
382
|
+
<tr class="deep-level-0">
|
|
383
|
+
<td class="name"><code><a href="#tokenKey">tokenKey</a></code></td>
|
|
384
|
+
<td class="name">
|
|
385
|
+
<code>
|
|
386
|
+
|
|
387
|
+
<span class="param-type">
|
|
388
|
+
|
|
389
|
+
String
|
|
390
|
+
|
|
391
|
+
</span>
|
|
392
|
+
|
|
393
|
+
|
|
394
|
+
|
|
395
|
+
</code>
|
|
396
|
+
</td>
|
|
397
|
+
<td class="name"><code><p>token名</p></code></td>
|
|
398
|
+
</tr>
|
|
399
|
+
|
|
400
|
+
<tr class="deep-level-0">
|
|
401
|
+
<td class="name"><code><a href="#tokenValue">tokenValue</a></code></td>
|
|
402
|
+
<td class="name">
|
|
403
|
+
<code>
|
|
404
|
+
|
|
405
|
+
<span class="param-type">
|
|
406
|
+
|
|
407
|
+
String
|
|
408
|
+
|
|
409
|
+
</span>
|
|
410
|
+
|
|
411
|
+
|
|
412
|
+
|
|
413
|
+
</code>
|
|
414
|
+
</td>
|
|
415
|
+
<td class="name"><code><p>token值</p></code></td>
|
|
416
|
+
</tr>
|
|
417
|
+
|
|
418
|
+
<tr class="deep-level-0">
|
|
419
|
+
<td class="name"><code><a href="#url">url</a></code></td>
|
|
420
|
+
<td class="name">
|
|
421
|
+
<code>
|
|
422
|
+
|
|
423
|
+
<span class="param-type">
|
|
424
|
+
|
|
425
|
+
String
|
|
426
|
+
|
|
427
|
+
</span>
|
|
428
|
+
|
|
429
|
+
|
|
430
|
+
|
|
431
|
+
</code>
|
|
432
|
+
</td>
|
|
433
|
+
<td class="name"><code><p>服务基地址</p></code></td>
|
|
434
|
+
</tr>
|
|
435
|
+
|
|
436
|
+
</tbody>
|
|
437
|
+
</table>
|
|
438
|
+
</div>
|
|
439
|
+
<h4 style="margin-top: 20px;margin-bottom: 20px;">成员变量详情</h4>
|
|
440
|
+
<div class="members">
|
|
441
|
+
|
|
442
|
+
<div class="member">
|
|
443
|
+
|
|
444
|
+
<span class="method-parameter is-pulled-right">
|
|
445
|
+
<label>类型:</label>
|
|
446
|
+
|
|
447
|
+
<span class="param-type">
|
|
448
|
+
|
|
449
|
+
Boolean
|
|
450
|
+
|
|
451
|
+
</span>
|
|
452
|
+
|
|
453
|
+
|
|
454
|
+
|
|
455
|
+
</span>
|
|
456
|
+
|
|
457
|
+
<h4 class="name" id="clientId">
|
|
458
|
+
<a class="href-link" href="#clientId">#</a>
|
|
459
|
+
|
|
460
|
+
<span class="code-name">
|
|
461
|
+
clientId
|
|
462
|
+
</span>
|
|
463
|
+
|
|
464
|
+
</h4>
|
|
465
|
+
|
|
466
|
+
|
|
467
|
+
|
|
468
|
+
|
|
469
|
+
<div class="description">
|
|
470
|
+
<p>客户端id</p>
|
|
471
|
+
</div>
|
|
472
|
+
|
|
473
|
+
|
|
474
|
+
|
|
475
|
+
|
|
476
|
+
|
|
477
|
+
<dl class="details">
|
|
478
|
+
|
|
479
|
+
|
|
480
|
+
|
|
481
|
+
|
|
482
|
+
|
|
483
|
+
|
|
484
|
+
<dt class="inherited-from">Inherited From:</dt>
|
|
485
|
+
<dd class="inherited-from"><ul class="dummy"><li>
|
|
486
|
+
<a goto="clientId" link="BaseServer.html" onclick="getTypeHTML(event)" class="mapgis-link-name" title="BaseServer#clientId" BaseServer.html#clientId>BaseServer#clientId</a>
|
|
487
|
+
</li></ul></dd>
|
|
488
|
+
|
|
489
|
+
|
|
490
|
+
|
|
491
|
+
|
|
492
|
+
|
|
493
|
+
|
|
494
|
+
|
|
495
|
+
|
|
496
|
+
|
|
497
|
+
|
|
498
|
+
|
|
499
|
+
|
|
500
|
+
|
|
501
|
+
|
|
502
|
+
|
|
503
|
+
|
|
504
|
+
|
|
505
|
+
|
|
506
|
+
|
|
507
|
+
|
|
508
|
+
|
|
509
|
+
|
|
510
|
+
|
|
511
|
+
|
|
512
|
+
|
|
513
|
+
|
|
514
|
+
</dl>
|
|
515
|
+
|
|
516
|
+
|
|
517
|
+
|
|
518
|
+
|
|
519
|
+
|
|
520
|
+
</div>
|
|
521
|
+
|
|
522
|
+
<div class="member">
|
|
523
|
+
|
|
524
|
+
<span class="method-parameter is-pulled-right">
|
|
525
|
+
<label>类型:</label>
|
|
526
|
+
|
|
527
|
+
<span class="param-type">
|
|
528
|
+
|
|
529
|
+
Boolean
|
|
530
|
+
|
|
531
|
+
</span>
|
|
532
|
+
|
|
533
|
+
|
|
534
|
+
|
|
535
|
+
</span>
|
|
536
|
+
|
|
537
|
+
<h4 class="name" id="enableGlobeFetch">
|
|
538
|
+
<a class="href-link" href="#enableGlobeFetch">#</a>
|
|
539
|
+
|
|
540
|
+
<span class="code-name">
|
|
541
|
+
enableGlobeFetch
|
|
542
|
+
</span>
|
|
543
|
+
|
|
544
|
+
</h4>
|
|
545
|
+
|
|
546
|
+
|
|
547
|
+
|
|
548
|
+
|
|
549
|
+
<div class="description">
|
|
550
|
+
<p>是否使用确据唯一的fetch对象,默认为true,当设为false时,会使用自己私有的fetch对象,所有的请求设置不会影响全局</p>
|
|
551
|
+
</div>
|
|
552
|
+
|
|
553
|
+
|
|
554
|
+
|
|
555
|
+
|
|
556
|
+
|
|
557
|
+
<dl class="details">
|
|
558
|
+
|
|
559
|
+
|
|
560
|
+
|
|
561
|
+
|
|
562
|
+
|
|
563
|
+
|
|
564
|
+
<dt class="inherited-from">Inherited From:</dt>
|
|
565
|
+
<dd class="inherited-from"><ul class="dummy"><li>
|
|
566
|
+
<a goto="enableGlobeFetch" link="BaseServer.html" onclick="getTypeHTML(event)" class="mapgis-link-name" title="BaseServer#enableGlobeFetch" BaseServer.html#enableGlobeFetch>BaseServer#enableGlobeFetch</a>
|
|
567
|
+
</li></ul></dd>
|
|
568
|
+
|
|
569
|
+
|
|
570
|
+
|
|
571
|
+
|
|
572
|
+
|
|
573
|
+
|
|
574
|
+
|
|
575
|
+
|
|
576
|
+
|
|
577
|
+
|
|
578
|
+
|
|
579
|
+
|
|
580
|
+
|
|
581
|
+
|
|
582
|
+
|
|
583
|
+
|
|
584
|
+
|
|
585
|
+
|
|
586
|
+
|
|
587
|
+
|
|
588
|
+
|
|
589
|
+
|
|
590
|
+
|
|
591
|
+
|
|
592
|
+
|
|
593
|
+
|
|
594
|
+
</dl>
|
|
595
|
+
|
|
596
|
+
|
|
597
|
+
|
|
598
|
+
|
|
599
|
+
|
|
600
|
+
<h5>示例</h5>
|
|
601
|
+
|
|
602
|
+
|
|
603
|
+
<pre class="prettyprint"><code>//设置请求基地址
|
|
604
|
+
// ES5引入方式
|
|
605
|
+
const { BaseServer } = zondy.service
|
|
606
|
+
// ES6引入方式
|
|
607
|
+
import { BaseServer } from "@mapgis/webclient-common"
|
|
608
|
+
let BaseServer = new BaseServer({
|
|
609
|
+
//请求基地址
|
|
610
|
+
url: '你的URL',
|
|
611
|
+
//使用私有的fetch对象
|
|
612
|
+
enableGlobeFetch: false,
|
|
613
|
+
//此时设置token等属性,不会影响全局的fetch对象
|
|
614
|
+
tokenValue: '你的token'
|
|
615
|
+
});
|
|
616
|
+
//继续使用全局fetch
|
|
617
|
+
BaseServer.enableGlobeFetch = true;</code></pre>
|
|
618
|
+
|
|
619
|
+
|
|
620
|
+
|
|
621
|
+
</div>
|
|
622
|
+
|
|
623
|
+
<div class="member">
|
|
624
|
+
|
|
625
|
+
<span class="method-parameter is-pulled-right">
|
|
626
|
+
<label>类型:</label>
|
|
627
|
+
|
|
628
|
+
<span class="param-type">
|
|
629
|
+
|
|
630
|
+
String
|
|
631
|
+
|
|
632
|
+
</span>
|
|
633
|
+
|
|
634
|
+
|
|
635
|
+
|
|
636
|
+
</span>
|
|
637
|
+
|
|
638
|
+
<h4 class="name" id="headers">
|
|
639
|
+
<a class="href-link" href="#headers">#</a>
|
|
640
|
+
|
|
641
|
+
<span class="code-name">
|
|
642
|
+
headers
|
|
643
|
+
</span>
|
|
644
|
+
|
|
645
|
+
</h4>
|
|
646
|
+
|
|
647
|
+
|
|
648
|
+
|
|
649
|
+
|
|
650
|
+
<div class="description">
|
|
651
|
+
<p>请求头参数</p>
|
|
652
|
+
</div>
|
|
653
|
+
|
|
654
|
+
|
|
655
|
+
|
|
656
|
+
|
|
657
|
+
|
|
658
|
+
<dl class="details">
|
|
659
|
+
|
|
660
|
+
|
|
661
|
+
|
|
662
|
+
|
|
663
|
+
|
|
664
|
+
|
|
665
|
+
<dt class="inherited-from">Inherited From:</dt>
|
|
666
|
+
<dd class="inherited-from"><ul class="dummy"><li>
|
|
667
|
+
<a goto="headers" link="BaseServer.html" onclick="getTypeHTML(event)" class="mapgis-link-name" title="BaseServer#headers" BaseServer.html#headers>BaseServer#headers</a>
|
|
668
|
+
</li></ul></dd>
|
|
669
|
+
|
|
670
|
+
|
|
671
|
+
|
|
672
|
+
|
|
673
|
+
|
|
674
|
+
|
|
675
|
+
|
|
676
|
+
|
|
677
|
+
|
|
678
|
+
|
|
679
|
+
|
|
680
|
+
|
|
681
|
+
|
|
682
|
+
|
|
683
|
+
|
|
684
|
+
|
|
685
|
+
|
|
686
|
+
|
|
687
|
+
|
|
688
|
+
|
|
689
|
+
|
|
690
|
+
|
|
691
|
+
|
|
692
|
+
|
|
693
|
+
|
|
694
|
+
|
|
695
|
+
</dl>
|
|
696
|
+
|
|
697
|
+
|
|
698
|
+
|
|
699
|
+
|
|
700
|
+
|
|
701
|
+
<h5>示例</h5>
|
|
702
|
+
|
|
703
|
+
|
|
704
|
+
<pre class="prettyprint"><code>//设置请求头参数
|
|
705
|
+
// ES5引入方式
|
|
706
|
+
const { BaseServer } = zondy.service
|
|
707
|
+
// ES6引入方式
|
|
708
|
+
import { BaseServer } from "@mapgis/webclient-common"
|
|
709
|
+
let BaseServer = new BaseServer({
|
|
710
|
+
//请求头
|
|
711
|
+
headers: {
|
|
712
|
+
//设置Content-Type为multipart/form-data
|
|
713
|
+
'Content-Type': 'multipart/form-data',
|
|
714
|
+
//设置token
|
|
715
|
+
'token': '你的token'
|
|
716
|
+
}
|
|
717
|
+
});
|
|
718
|
+
//动态修改
|
|
719
|
+
BaseServer.headers.token = '新token';</code></pre>
|
|
720
|
+
|
|
721
|
+
|
|
722
|
+
|
|
723
|
+
</div>
|
|
724
|
+
|
|
725
|
+
<div class="member">
|
|
726
|
+
|
|
727
|
+
<span class="method-parameter is-pulled-right">
|
|
728
|
+
<label>类型:</label>
|
|
729
|
+
|
|
730
|
+
<span class="param-type">
|
|
731
|
+
|
|
732
|
+
function
|
|
733
|
+
|
|
734
|
+
</span>
|
|
735
|
+
|
|
736
|
+
|
|
737
|
+
|
|
738
|
+
</span>
|
|
739
|
+
|
|
740
|
+
<h4 class="name" id="requestInterceptor">
|
|
741
|
+
<a class="href-link" href="#requestInterceptor">#</a>
|
|
742
|
+
|
|
743
|
+
<span class="code-name">
|
|
744
|
+
requestInterceptor
|
|
745
|
+
</span>
|
|
746
|
+
|
|
747
|
+
</h4>
|
|
748
|
+
|
|
749
|
+
|
|
750
|
+
|
|
751
|
+
|
|
752
|
+
<div class="description">
|
|
753
|
+
<p>请求发送拦截器</p>
|
|
754
|
+
</div>
|
|
755
|
+
|
|
756
|
+
|
|
757
|
+
|
|
758
|
+
|
|
759
|
+
|
|
760
|
+
<dl class="details">
|
|
761
|
+
|
|
762
|
+
|
|
763
|
+
|
|
764
|
+
|
|
765
|
+
|
|
766
|
+
|
|
767
|
+
<dt class="inherited-from">Inherited From:</dt>
|
|
768
|
+
<dd class="inherited-from"><ul class="dummy"><li>
|
|
769
|
+
<a goto="requestInterceptor" link="BaseServer.html" onclick="getTypeHTML(event)" class="mapgis-link-name" title="BaseServer#requestInterceptor" BaseServer.html#requestInterceptor>BaseServer#requestInterceptor</a>
|
|
770
|
+
</li></ul></dd>
|
|
771
|
+
|
|
772
|
+
|
|
773
|
+
|
|
774
|
+
|
|
775
|
+
|
|
776
|
+
|
|
777
|
+
|
|
778
|
+
|
|
779
|
+
|
|
780
|
+
|
|
781
|
+
|
|
782
|
+
|
|
783
|
+
|
|
784
|
+
|
|
785
|
+
|
|
786
|
+
|
|
787
|
+
|
|
788
|
+
|
|
789
|
+
|
|
790
|
+
|
|
791
|
+
|
|
792
|
+
|
|
793
|
+
|
|
794
|
+
|
|
795
|
+
|
|
796
|
+
|
|
797
|
+
</dl>
|
|
798
|
+
|
|
799
|
+
|
|
800
|
+
|
|
801
|
+
|
|
802
|
+
|
|
803
|
+
<h5>示例</h5>
|
|
804
|
+
|
|
805
|
+
|
|
806
|
+
<pre class="prettyprint"><code>//设置拦截器,任何一个继承自BaseServer的对象都可以设置,全局唯一
|
|
807
|
+
// ES5引入方式
|
|
808
|
+
const { BaseServer,RequestInterceptor } = zondy.service
|
|
809
|
+
// ES6引入方式
|
|
810
|
+
import { BaseServer,RequestInterceptor } from "@mapgis/webclient-common"
|
|
811
|
+
let BaseServer = new BaseServer({
|
|
812
|
+
//设置请求发送拦截器
|
|
813
|
+
requestInterceptor: new RequestInterceptor({
|
|
814
|
+
//请求发送前进行统一处理
|
|
815
|
+
before: function(config) {
|
|
816
|
+
//执行你的业务逻辑
|
|
817
|
+
//注意必须显示返回config对象,如果返回为空,则不发送请求
|
|
818
|
+
return config;
|
|
819
|
+
},
|
|
820
|
+
//请求发送失败时进行统一处理
|
|
821
|
+
failure: function(error) {
|
|
822
|
+
//执行你的业务逻辑
|
|
823
|
+
}
|
|
824
|
+
})
|
|
825
|
+
});
|
|
826
|
+
//动态修改
|
|
827
|
+
BaseServer.requestInterceptor.before = function() {};</code></pre>
|
|
828
|
+
|
|
829
|
+
|
|
830
|
+
|
|
831
|
+
</div>
|
|
832
|
+
|
|
833
|
+
<div class="member">
|
|
834
|
+
|
|
835
|
+
<span class="method-parameter is-pulled-right">
|
|
836
|
+
<label>类型:</label>
|
|
837
|
+
|
|
838
|
+
<span class="param-type">
|
|
839
|
+
|
|
840
|
+
String
|
|
841
|
+
|
|
842
|
+
</span>
|
|
843
|
+
|
|
844
|
+
|
|
845
|
+
|
|
846
|
+
</span>
|
|
847
|
+
|
|
848
|
+
<h4 class="name" id="requestTimeout">
|
|
849
|
+
<a class="href-link" href="#requestTimeout">#</a>
|
|
850
|
+
|
|
851
|
+
<span class="code-name">
|
|
852
|
+
requestTimeout
|
|
853
|
+
</span>
|
|
854
|
+
|
|
855
|
+
</h4>
|
|
856
|
+
|
|
857
|
+
|
|
858
|
+
|
|
859
|
+
|
|
860
|
+
<div class="description">
|
|
861
|
+
<p>请求超时时间,默认45000ms,即45s</p>
|
|
862
|
+
</div>
|
|
863
|
+
|
|
864
|
+
|
|
865
|
+
|
|
866
|
+
|
|
867
|
+
|
|
868
|
+
<dl class="details">
|
|
869
|
+
|
|
870
|
+
|
|
871
|
+
|
|
872
|
+
|
|
873
|
+
|
|
874
|
+
|
|
875
|
+
<dt class="inherited-from">Inherited From:</dt>
|
|
876
|
+
<dd class="inherited-from"><ul class="dummy"><li>
|
|
877
|
+
<a goto="requestTimeout" link="BaseServer.html" onclick="getTypeHTML(event)" class="mapgis-link-name" title="BaseServer#requestTimeout" BaseServer.html#requestTimeout>BaseServer#requestTimeout</a>
|
|
878
|
+
</li></ul></dd>
|
|
879
|
+
|
|
880
|
+
|
|
881
|
+
|
|
882
|
+
|
|
883
|
+
|
|
884
|
+
|
|
885
|
+
|
|
886
|
+
|
|
887
|
+
|
|
888
|
+
|
|
889
|
+
|
|
890
|
+
|
|
891
|
+
|
|
892
|
+
|
|
893
|
+
|
|
894
|
+
|
|
895
|
+
|
|
896
|
+
|
|
897
|
+
|
|
898
|
+
|
|
899
|
+
|
|
900
|
+
|
|
901
|
+
|
|
902
|
+
|
|
903
|
+
|
|
904
|
+
|
|
905
|
+
</dl>
|
|
906
|
+
|
|
907
|
+
|
|
908
|
+
|
|
909
|
+
|
|
910
|
+
|
|
911
|
+
<h5>示例</h5>
|
|
912
|
+
|
|
913
|
+
|
|
914
|
+
<pre class="prettyprint"><code>//设置超时时间
|
|
915
|
+
//初始化AddressServer服务对象
|
|
916
|
+
// ES5引入方式
|
|
917
|
+
const { BaseServer } = zondy.service
|
|
918
|
+
// ES6引入方式
|
|
919
|
+
import { BaseServer } from "@mapgis/webclient-common"
|
|
920
|
+
let BaseServer = new BaseServer({
|
|
921
|
+
//超时时间
|
|
922
|
+
requestTimeout: 2000
|
|
923
|
+
});
|
|
924
|
+
//动态修改
|
|
925
|
+
BaseServer.requestTimeout = 3000;</code></pre>
|
|
926
|
+
|
|
927
|
+
|
|
928
|
+
|
|
929
|
+
</div>
|
|
930
|
+
|
|
931
|
+
<div class="member">
|
|
932
|
+
|
|
933
|
+
<span class="method-parameter is-pulled-right">
|
|
934
|
+
<label>类型:</label>
|
|
935
|
+
|
|
936
|
+
<span class="param-type">
|
|
937
|
+
|
|
938
|
+
function
|
|
939
|
+
|
|
940
|
+
</span>
|
|
941
|
+
|
|
942
|
+
|
|
943
|
+
|
|
944
|
+
</span>
|
|
945
|
+
|
|
946
|
+
<h4 class="name" id="responseInterceptor">
|
|
947
|
+
<a class="href-link" href="#responseInterceptor">#</a>
|
|
948
|
+
|
|
949
|
+
<span class="code-name">
|
|
950
|
+
responseInterceptor
|
|
951
|
+
</span>
|
|
952
|
+
|
|
953
|
+
</h4>
|
|
954
|
+
|
|
955
|
+
|
|
956
|
+
|
|
957
|
+
|
|
958
|
+
<div class="description">
|
|
959
|
+
<p>请求响应拦截器</p>
|
|
960
|
+
</div>
|
|
961
|
+
|
|
962
|
+
|
|
963
|
+
|
|
964
|
+
|
|
965
|
+
|
|
966
|
+
<dl class="details">
|
|
967
|
+
|
|
968
|
+
|
|
969
|
+
|
|
970
|
+
|
|
971
|
+
|
|
972
|
+
|
|
973
|
+
<dt class="inherited-from">Inherited From:</dt>
|
|
974
|
+
<dd class="inherited-from"><ul class="dummy"><li>
|
|
975
|
+
<a goto="responseInterceptor" link="BaseServer.html" onclick="getTypeHTML(event)" class="mapgis-link-name" title="BaseServer#responseInterceptor" BaseServer.html#responseInterceptor>BaseServer#responseInterceptor</a>
|
|
976
|
+
</li></ul></dd>
|
|
977
|
+
|
|
978
|
+
|
|
979
|
+
|
|
980
|
+
|
|
981
|
+
|
|
982
|
+
|
|
983
|
+
|
|
984
|
+
|
|
985
|
+
|
|
986
|
+
|
|
987
|
+
|
|
988
|
+
|
|
989
|
+
|
|
990
|
+
|
|
991
|
+
|
|
992
|
+
|
|
993
|
+
|
|
994
|
+
|
|
995
|
+
|
|
996
|
+
|
|
997
|
+
|
|
998
|
+
|
|
999
|
+
|
|
1000
|
+
|
|
1001
|
+
|
|
1002
|
+
|
|
1003
|
+
</dl>
|
|
1004
|
+
|
|
1005
|
+
|
|
1006
|
+
|
|
1007
|
+
|
|
1008
|
+
|
|
1009
|
+
<h5>示例</h5>
|
|
1010
|
+
|
|
1011
|
+
|
|
1012
|
+
<pre class="prettyprint"><code>//设置拦截器,任何一个继承自BaseServer的对象都可以设置,全局唯一
|
|
1013
|
+
// ES5引入方式
|
|
1014
|
+
const { BaseServer,ResponseInterceptor } = zondy.service
|
|
1015
|
+
// ES6引入方式
|
|
1016
|
+
import { BaseServer,ResponseInterceptor } from "@mapgis/webclient-common"
|
|
1017
|
+
let BaseServer = new BaseServer({
|
|
1018
|
+
//设置请求响应拦截器
|
|
1019
|
+
responseInterceptor: new ResponseInterceptor({
|
|
1020
|
+
//执行请求响应,接口调用成功时会执行的回调
|
|
1021
|
+
success: function(result) {
|
|
1022
|
+
//执行你的业务逻辑
|
|
1023
|
+
//注意必须显示返回result对象,如果返回为空,则不执行请求响应成功回调
|
|
1024
|
+
return result;
|
|
1025
|
+
},
|
|
1026
|
+
//请求响应成功,接口调用失败时会执行的函数
|
|
1027
|
+
failure: function(result) {
|
|
1028
|
+
//执行你的业务逻辑
|
|
1029
|
+
//注意必须显示返回result对象,如果返回为空,则不执行回调韩式
|
|
1030
|
+
return result;
|
|
1031
|
+
}
|
|
1032
|
+
})
|
|
1033
|
+
});
|
|
1034
|
+
//动态修改
|
|
1035
|
+
BaseServer.responseInterceptor.success = function() {};</code></pre>
|
|
1036
|
+
|
|
1037
|
+
|
|
1038
|
+
|
|
1039
|
+
</div>
|
|
1040
|
+
|
|
1041
|
+
<div class="member">
|
|
1042
|
+
|
|
1043
|
+
<span class="method-parameter is-pulled-right">
|
|
1044
|
+
<label>类型:</label>
|
|
1045
|
+
|
|
1046
|
+
<span class="param-type">
|
|
1047
|
+
|
|
1048
|
+
<a link="TokenAttachType.html" onclick="getTypeHTML(event)" class="mapgis-link-name" title="TokenAttachType" global.html#TokenAttachType>TokenAttachType</a>
|
|
1049
|
+
|
|
1050
|
+
</span>
|
|
1051
|
+
|
|
1052
|
+
|
|
1053
|
+
|
|
1054
|
+
</span>
|
|
1055
|
+
|
|
1056
|
+
<h4 class="name" id="tokenAttachType">
|
|
1057
|
+
<a class="href-link" href="#tokenAttachType">#</a>
|
|
1058
|
+
|
|
1059
|
+
<span class="code-name">
|
|
1060
|
+
tokenAttachType
|
|
1061
|
+
</span>
|
|
1062
|
+
|
|
1063
|
+
</h4>
|
|
1064
|
+
|
|
1065
|
+
|
|
1066
|
+
|
|
1067
|
+
|
|
1068
|
+
<div class="description">
|
|
1069
|
+
<p>指定token附加到何处</p>
|
|
1070
|
+
</div>
|
|
1071
|
+
|
|
1072
|
+
|
|
1073
|
+
|
|
1074
|
+
|
|
1075
|
+
|
|
1076
|
+
<dl class="details">
|
|
1077
|
+
|
|
1078
|
+
|
|
1079
|
+
|
|
1080
|
+
|
|
1081
|
+
|
|
1082
|
+
|
|
1083
|
+
<dt class="inherited-from">Inherited From:</dt>
|
|
1084
|
+
<dd class="inherited-from"><ul class="dummy"><li>
|
|
1085
|
+
<a goto="tokenAttachType" link="BaseServer.html" onclick="getTypeHTML(event)" class="mapgis-link-name" title="BaseServer#tokenAttachType" BaseServer.html#tokenAttachType>BaseServer#tokenAttachType</a>
|
|
1086
|
+
</li></ul></dd>
|
|
1087
|
+
|
|
1088
|
+
|
|
1089
|
+
|
|
1090
|
+
|
|
1091
|
+
|
|
1092
|
+
|
|
1093
|
+
|
|
1094
|
+
|
|
1095
|
+
|
|
1096
|
+
|
|
1097
|
+
|
|
1098
|
+
|
|
1099
|
+
|
|
1100
|
+
|
|
1101
|
+
|
|
1102
|
+
|
|
1103
|
+
|
|
1104
|
+
|
|
1105
|
+
|
|
1106
|
+
|
|
1107
|
+
|
|
1108
|
+
|
|
1109
|
+
|
|
1110
|
+
|
|
1111
|
+
|
|
1112
|
+
|
|
1113
|
+
</dl>
|
|
1114
|
+
|
|
1115
|
+
|
|
1116
|
+
|
|
1117
|
+
|
|
1118
|
+
|
|
1119
|
+
<h5>示例</h5>
|
|
1120
|
+
|
|
1121
|
+
|
|
1122
|
+
<pre class="prettyprint"><code>//设置token值
|
|
1123
|
+
// ES5引入方式
|
|
1124
|
+
const { BaseServer } = zondy.service
|
|
1125
|
+
const { TokenAttachType } = zondy.enum
|
|
1126
|
+
// ES6引入方式
|
|
1127
|
+
import { BaseServer,TokenAttachType } from "@mapgis/webclient-common"
|
|
1128
|
+
let BaseServer = new BaseServer({
|
|
1129
|
+
//token名
|
|
1130
|
+
tokenValue: '你的token值',
|
|
1131
|
+
//token值
|
|
1132
|
+
tokenValue: '你的token值',
|
|
1133
|
+
//指定token附加到url后面
|
|
1134
|
+
tokenAttachType: TokenAttachType.url
|
|
1135
|
+
});
|
|
1136
|
+
//动态修改
|
|
1137
|
+
BaseServer.tokenAttachType = TokenAttachType.header;</code></pre>
|
|
1138
|
+
|
|
1139
|
+
|
|
1140
|
+
|
|
1141
|
+
</div>
|
|
1142
|
+
|
|
1143
|
+
<div class="member">
|
|
1144
|
+
|
|
1145
|
+
<span class="method-parameter is-pulled-right">
|
|
1146
|
+
<label>类型:</label>
|
|
1147
|
+
|
|
1148
|
+
<span class="param-type">
|
|
1149
|
+
|
|
1150
|
+
String
|
|
1151
|
+
|
|
1152
|
+
</span>
|
|
1153
|
+
|
|
1154
|
+
|
|
1155
|
+
|
|
1156
|
+
</span>
|
|
1157
|
+
|
|
1158
|
+
<h4 class="name" id="tokenKey">
|
|
1159
|
+
<a class="href-link" href="#tokenKey">#</a>
|
|
1160
|
+
|
|
1161
|
+
<span class="code-name">
|
|
1162
|
+
tokenKey
|
|
1163
|
+
</span>
|
|
1164
|
+
|
|
1165
|
+
</h4>
|
|
1166
|
+
|
|
1167
|
+
|
|
1168
|
+
|
|
1169
|
+
|
|
1170
|
+
<div class="description">
|
|
1171
|
+
<p>token名</p>
|
|
1172
|
+
</div>
|
|
1173
|
+
|
|
1174
|
+
|
|
1175
|
+
|
|
1176
|
+
|
|
1177
|
+
|
|
1178
|
+
<dl class="details">
|
|
1179
|
+
|
|
1180
|
+
|
|
1181
|
+
|
|
1182
|
+
|
|
1183
|
+
|
|
1184
|
+
|
|
1185
|
+
<dt class="inherited-from">Inherited From:</dt>
|
|
1186
|
+
<dd class="inherited-from"><ul class="dummy"><li>
|
|
1187
|
+
<a goto="tokenKey" link="BaseServer.html" onclick="getTypeHTML(event)" class="mapgis-link-name" title="BaseServer#tokenKey" BaseServer.html#tokenKey>BaseServer#tokenKey</a>
|
|
1188
|
+
</li></ul></dd>
|
|
1189
|
+
|
|
1190
|
+
|
|
1191
|
+
|
|
1192
|
+
|
|
1193
|
+
|
|
1194
|
+
|
|
1195
|
+
|
|
1196
|
+
|
|
1197
|
+
|
|
1198
|
+
|
|
1199
|
+
|
|
1200
|
+
|
|
1201
|
+
|
|
1202
|
+
|
|
1203
|
+
|
|
1204
|
+
|
|
1205
|
+
|
|
1206
|
+
|
|
1207
|
+
|
|
1208
|
+
|
|
1209
|
+
|
|
1210
|
+
|
|
1211
|
+
|
|
1212
|
+
|
|
1213
|
+
|
|
1214
|
+
|
|
1215
|
+
</dl>
|
|
1216
|
+
|
|
1217
|
+
|
|
1218
|
+
|
|
1219
|
+
|
|
1220
|
+
|
|
1221
|
+
<h5>示例</h5>
|
|
1222
|
+
|
|
1223
|
+
|
|
1224
|
+
<pre class="prettyprint"><code>//设置token名
|
|
1225
|
+
// ES5引入方式
|
|
1226
|
+
const { BaseServer } = zondy.service
|
|
1227
|
+
// ES6引入方式
|
|
1228
|
+
import { BaseServer } from "@mapgis/webclient-common"
|
|
1229
|
+
let BaseServer = new BaseServer({
|
|
1230
|
+
//token名
|
|
1231
|
+
tokenKey: '你的tokenKey'
|
|
1232
|
+
});
|
|
1233
|
+
//动态修改
|
|
1234
|
+
BaseServer.tokenKey = '新tokenKey';</code></pre>
|
|
1235
|
+
|
|
1236
|
+
|
|
1237
|
+
|
|
1238
|
+
</div>
|
|
1239
|
+
|
|
1240
|
+
<div class="member">
|
|
1241
|
+
|
|
1242
|
+
<span class="method-parameter is-pulled-right">
|
|
1243
|
+
<label>类型:</label>
|
|
1244
|
+
|
|
1245
|
+
<span class="param-type">
|
|
1246
|
+
|
|
1247
|
+
String
|
|
1248
|
+
|
|
1249
|
+
</span>
|
|
1250
|
+
|
|
1251
|
+
|
|
1252
|
+
|
|
1253
|
+
</span>
|
|
1254
|
+
|
|
1255
|
+
<h4 class="name" id="tokenValue">
|
|
1256
|
+
<a class="href-link" href="#tokenValue">#</a>
|
|
1257
|
+
|
|
1258
|
+
<span class="code-name">
|
|
1259
|
+
tokenValue
|
|
1260
|
+
</span>
|
|
1261
|
+
|
|
1262
|
+
</h4>
|
|
1263
|
+
|
|
1264
|
+
|
|
1265
|
+
|
|
1266
|
+
|
|
1267
|
+
<div class="description">
|
|
1268
|
+
<p>token值</p>
|
|
1269
|
+
</div>
|
|
1270
|
+
|
|
1271
|
+
|
|
1272
|
+
|
|
1273
|
+
|
|
1274
|
+
|
|
1275
|
+
<dl class="details">
|
|
1276
|
+
|
|
1277
|
+
|
|
1278
|
+
|
|
1279
|
+
|
|
1280
|
+
|
|
1281
|
+
|
|
1282
|
+
<dt class="inherited-from">Inherited From:</dt>
|
|
1283
|
+
<dd class="inherited-from"><ul class="dummy"><li>
|
|
1284
|
+
<a goto="tokenValue" link="BaseServer.html" onclick="getTypeHTML(event)" class="mapgis-link-name" title="BaseServer#tokenValue" BaseServer.html#tokenValue>BaseServer#tokenValue</a>
|
|
1285
|
+
</li></ul></dd>
|
|
1286
|
+
|
|
1287
|
+
|
|
1288
|
+
|
|
1289
|
+
|
|
1290
|
+
|
|
1291
|
+
|
|
1292
|
+
|
|
1293
|
+
|
|
1294
|
+
|
|
1295
|
+
|
|
1296
|
+
|
|
1297
|
+
|
|
1298
|
+
|
|
1299
|
+
|
|
1300
|
+
|
|
1301
|
+
|
|
1302
|
+
|
|
1303
|
+
|
|
1304
|
+
|
|
1305
|
+
|
|
1306
|
+
|
|
1307
|
+
|
|
1308
|
+
|
|
1309
|
+
|
|
1310
|
+
|
|
1311
|
+
|
|
1312
|
+
</dl>
|
|
1313
|
+
|
|
1314
|
+
|
|
1315
|
+
|
|
1316
|
+
|
|
1317
|
+
|
|
1318
|
+
<h5>示例</h5>
|
|
1319
|
+
|
|
1320
|
+
|
|
1321
|
+
<pre class="prettyprint"><code>//设置token值
|
|
1322
|
+
// ES5引入方式
|
|
1323
|
+
const { BaseServer } = zondy.service
|
|
1324
|
+
// ES6引入方式
|
|
1325
|
+
import { BaseServer } from "@mapgis/webclient-common"
|
|
1326
|
+
let BaseServer = new BaseServer({
|
|
1327
|
+
//token值
|
|
1328
|
+
tokenValue: '你的token值'
|
|
1329
|
+
});
|
|
1330
|
+
//动态修改
|
|
1331
|
+
BaseServer.tokenValue = '新token值';</code></pre>
|
|
1332
|
+
|
|
1333
|
+
|
|
1334
|
+
|
|
1335
|
+
</div>
|
|
1336
|
+
|
|
1337
|
+
<div class="member">
|
|
1338
|
+
|
|
1339
|
+
<span class="method-parameter is-pulled-right">
|
|
1340
|
+
<label>类型:</label>
|
|
1341
|
+
|
|
1342
|
+
<span class="param-type">
|
|
1343
|
+
|
|
1344
|
+
String
|
|
1345
|
+
|
|
1346
|
+
</span>
|
|
1347
|
+
|
|
1348
|
+
|
|
1349
|
+
|
|
1350
|
+
</span>
|
|
1351
|
+
|
|
1352
|
+
<h4 class="name" id="url">
|
|
1353
|
+
<a class="href-link" href="#url">#</a>
|
|
1354
|
+
|
|
1355
|
+
<span class="code-name">
|
|
1356
|
+
url
|
|
1357
|
+
</span>
|
|
1358
|
+
|
|
1359
|
+
</h4>
|
|
1360
|
+
|
|
1361
|
+
|
|
1362
|
+
|
|
1363
|
+
|
|
1364
|
+
<div class="description">
|
|
1365
|
+
<p>服务基地址</p>
|
|
1366
|
+
</div>
|
|
1367
|
+
|
|
1368
|
+
|
|
1369
|
+
|
|
1370
|
+
|
|
1371
|
+
|
|
1372
|
+
<dl class="details">
|
|
1373
|
+
|
|
1374
|
+
|
|
1375
|
+
|
|
1376
|
+
|
|
1377
|
+
|
|
1378
|
+
|
|
1379
|
+
<dt class="inherited-from">Inherited From:</dt>
|
|
1380
|
+
<dd class="inherited-from"><ul class="dummy"><li>
|
|
1381
|
+
<a goto="url" link="BaseServer.html" onclick="getTypeHTML(event)" class="mapgis-link-name" title="BaseServer#url" BaseServer.html#url>BaseServer#url</a>
|
|
1382
|
+
</li></ul></dd>
|
|
1383
|
+
|
|
1384
|
+
|
|
1385
|
+
|
|
1386
|
+
|
|
1387
|
+
|
|
1388
|
+
|
|
1389
|
+
|
|
1390
|
+
|
|
1391
|
+
|
|
1392
|
+
|
|
1393
|
+
|
|
1394
|
+
|
|
1395
|
+
|
|
1396
|
+
|
|
1397
|
+
|
|
1398
|
+
|
|
1399
|
+
|
|
1400
|
+
|
|
1401
|
+
|
|
1402
|
+
|
|
1403
|
+
|
|
1404
|
+
|
|
1405
|
+
|
|
1406
|
+
|
|
1407
|
+
|
|
1408
|
+
|
|
1409
|
+
</dl>
|
|
1410
|
+
|
|
1411
|
+
|
|
1412
|
+
|
|
1413
|
+
|
|
1414
|
+
|
|
1415
|
+
<h5>示例</h5>
|
|
1416
|
+
|
|
1417
|
+
|
|
1418
|
+
<pre class="prettyprint"><code>//设置请求基地址
|
|
1419
|
+
// ES5引入方式
|
|
1420
|
+
const { BaseServer } = zondy.service
|
|
1421
|
+
// ES6引入方式
|
|
1422
|
+
import { BaseServer } from "@mapgis/webclient-common"
|
|
1423
|
+
let BaseServer = new BaseServer({
|
|
1424
|
+
//请求基地址
|
|
1425
|
+
url: '你的URL'
|
|
1426
|
+
});
|
|
1427
|
+
//动态修改
|
|
1428
|
+
BaseServer.url = '新URL';</code></pre>
|
|
1429
|
+
|
|
1430
|
+
|
|
1431
|
+
|
|
1432
|
+
</div>
|
|
1433
|
+
|
|
1434
|
+
</div>
|
|
1435
|
+
</div>
|
|
1436
|
+
|
|
1437
|
+
|
|
1438
|
+
|
|
1439
|
+
<div class='vertical-section'>
|
|
1440
|
+
<h3 id='function'>方法</h3>
|
|
1441
|
+
<h4 style="margin-top: 20px;margin-bottom: 20px;">方法概述</h4>
|
|
1442
|
+
<div class="members">
|
|
1443
|
+
<div class="table-container">
|
|
1444
|
+
<table class="params table">
|
|
1445
|
+
<thead>
|
|
1446
|
+
<tr>
|
|
1447
|
+
<th>名称</th>
|
|
1448
|
+
<th>返回值类型</th>
|
|
1449
|
+
<th>描述</th>
|
|
1450
|
+
</tr>
|
|
1451
|
+
</thead>
|
|
1452
|
+
<tbody>
|
|
1453
|
+
|
|
1454
|
+
<tr class="deep-level-0">
|
|
1455
|
+
<td class="name"><code><a href="#queryLayerListInfoBySceneName">queryLayerListInfoBySceneName</a></code></td>
|
|
1456
|
+
<td class="name">
|
|
1457
|
+
<code>
|
|
1458
|
+
|
|
1459
|
+
</code>
|
|
1460
|
+
</td>
|
|
1461
|
+
<td class="name"><code><p>根据场景名称获取图层列表信息</p></code></td>
|
|
1462
|
+
</tr>
|
|
1463
|
+
|
|
1464
|
+
<tr class="deep-level-0">
|
|
1465
|
+
<td class="name"><code><a href="#querySceneListInfo">querySceneListInfo</a></code></td>
|
|
1466
|
+
<td class="name">
|
|
1467
|
+
<code>
|
|
1468
|
+
|
|
1469
|
+
|
|
1470
|
+
<span class="param-type">
|
|
1471
|
+
|
|
1472
|
+
Promise.<Object>
|
|
1473
|
+
|
|
1474
|
+
</span>
|
|
1475
|
+
|
|
1476
|
+
|
|
1477
|
+
|
|
1478
|
+
|
|
1479
|
+
</code>
|
|
1480
|
+
</td>
|
|
1481
|
+
<td class="name"><code><p>获取三维服务中所有的场景列表</p></code></td>
|
|
1482
|
+
</tr>
|
|
1483
|
+
|
|
1484
|
+
<tr class="deep-level-0">
|
|
1485
|
+
<td class="name"><code><a href="#queryServerInfo">queryServerInfo</a></code></td>
|
|
1486
|
+
<td class="name">
|
|
1487
|
+
<code>
|
|
1488
|
+
|
|
1489
|
+
</code>
|
|
1490
|
+
</td>
|
|
1491
|
+
<td class="name"><code><p>获取服务信息,IGS2.0新增服务</p></code></td>
|
|
1492
|
+
</tr>
|
|
1493
|
+
|
|
1494
|
+
</tbody>
|
|
1495
|
+
</table>
|
|
1496
|
+
</div>
|
|
1497
|
+
<h4 style="margin-top: 20px;margin-bottom: 20px;">方法详情</h4>
|
|
1498
|
+
|
|
1499
|
+
<div class="member">
|
|
1500
|
+
|
|
1501
|
+
|
|
1502
|
+
|
|
1503
|
+
<h4 class="name" id="queryLayerListInfoBySceneName">
|
|
1504
|
+
<a class="href-link" href="#queryLayerListInfoBySceneName">#</a>
|
|
1505
|
+
|
|
1506
|
+
<span class="code-name" id="queryLayerListInfoBySceneName" style="font-size:30px">
|
|
1507
|
+
|
|
1508
|
+
queryLayerListInfoBySceneName<span class="signature">(options)</span>
|
|
1509
|
+
|
|
1510
|
+
</span>
|
|
1511
|
+
</h4>
|
|
1512
|
+
|
|
1513
|
+
|
|
1514
|
+
|
|
1515
|
+
<div class="description">
|
|
1516
|
+
<p>根据场景名称获取图层列表信息</p>
|
|
1517
|
+
</div>
|
|
1518
|
+
|
|
1519
|
+
|
|
1520
|
+
|
|
1521
|
+
|
|
1522
|
+
|
|
1523
|
+
|
|
1524
|
+
|
|
1525
|
+
|
|
1526
|
+
|
|
1527
|
+
|
|
1528
|
+
<h4>参数</h4>
|
|
1529
|
+
|
|
1530
|
+
<div class="table-container">
|
|
1531
|
+
<table class="params table">
|
|
1532
|
+
<thead>
|
|
1533
|
+
<tr>
|
|
1534
|
+
|
|
1535
|
+
<th>名称</th>
|
|
1536
|
+
|
|
1537
|
+
|
|
1538
|
+
<th>类型</th>
|
|
1539
|
+
|
|
1540
|
+
|
|
1541
|
+
|
|
1542
|
+
<th class="last">描述</th>
|
|
1543
|
+
</tr>
|
|
1544
|
+
</thead>
|
|
1545
|
+
|
|
1546
|
+
<tbody>
|
|
1547
|
+
|
|
1548
|
+
|
|
1549
|
+
|
|
1550
|
+
<tr class="deep-level-0">
|
|
1551
|
+
|
|
1552
|
+
<td class="name"><code>options</code></td>
|
|
1553
|
+
|
|
1554
|
+
|
|
1555
|
+
<td class="type">
|
|
1556
|
+
|
|
1557
|
+
</td>
|
|
1558
|
+
|
|
1559
|
+
|
|
1560
|
+
|
|
1561
|
+
<td class="description last"><p>查询参数</p></td>
|
|
1562
|
+
</tr>
|
|
1563
|
+
|
|
1564
|
+
|
|
1565
|
+
|
|
1566
|
+
|
|
1567
|
+
<tr class="deep-level-1">
|
|
1568
|
+
|
|
1569
|
+
<td class="name"><code>sceneName</code></td>
|
|
1570
|
+
|
|
1571
|
+
|
|
1572
|
+
<td class="type">
|
|
1573
|
+
|
|
1574
|
+
|
|
1575
|
+
<span class="param-type">
|
|
1576
|
+
|
|
1577
|
+
String
|
|
1578
|
+
|
|
1579
|
+
</span>
|
|
1580
|
+
|
|
1581
|
+
|
|
1582
|
+
|
|
1583
|
+
|
|
1584
|
+
</td>
|
|
1585
|
+
|
|
1586
|
+
|
|
1587
|
+
|
|
1588
|
+
<td class="description last"><p>查询的场景名称, 必填</p></td>
|
|
1589
|
+
</tr>
|
|
1590
|
+
|
|
1591
|
+
|
|
1592
|
+
|
|
1593
|
+
|
|
1594
|
+
<tr class="deep-level-1">
|
|
1595
|
+
|
|
1596
|
+
<td class="name"><code>success</code></td>
|
|
1597
|
+
|
|
1598
|
+
|
|
1599
|
+
<td class="type">
|
|
1600
|
+
|
|
1601
|
+
|
|
1602
|
+
<span class="param-type">
|
|
1603
|
+
|
|
1604
|
+
<a link="queryLayerListInfoSuccess.html" onclick="getTypeHTML(event)" class="mapgis-link-name" title="queryLayerListInfoSuccess" global.html#queryLayerListInfoSuccess>queryLayerListInfoSuccess</a>
|
|
1605
|
+
|
|
1606
|
+
</span>
|
|
1607
|
+
|
|
1608
|
+
|
|
1609
|
+
|
|
1610
|
+
|
|
1611
|
+
</td>
|
|
1612
|
+
|
|
1613
|
+
|
|
1614
|
+
|
|
1615
|
+
<td class="description last"><p>查询成功回调函数,若使用Promise方式则不必填写</p></td>
|
|
1616
|
+
</tr>
|
|
1617
|
+
|
|
1618
|
+
|
|
1619
|
+
|
|
1620
|
+
|
|
1621
|
+
<tr class="deep-level-1">
|
|
1622
|
+
|
|
1623
|
+
<td class="name"><code>failure</code></td>
|
|
1624
|
+
|
|
1625
|
+
|
|
1626
|
+
<td class="type">
|
|
1627
|
+
|
|
1628
|
+
|
|
1629
|
+
<span class="param-type">
|
|
1630
|
+
|
|
1631
|
+
<a link="queryFailure.html" onclick="getTypeHTML(event)" class="mapgis-link-name" title="queryFailure" global.html#queryFailure>queryFailure</a>
|
|
1632
|
+
|
|
1633
|
+
</span>
|
|
1634
|
+
|
|
1635
|
+
|
|
1636
|
+
|
|
1637
|
+
|
|
1638
|
+
</td>
|
|
1639
|
+
|
|
1640
|
+
|
|
1641
|
+
|
|
1642
|
+
<td class="description last"><p>查询失败回调函数,若使用Promise方式则不必填写</p></td>
|
|
1643
|
+
</tr>
|
|
1644
|
+
|
|
1645
|
+
|
|
1646
|
+
|
|
1647
|
+
|
|
1648
|
+
|
|
1649
|
+
|
|
1650
|
+
|
|
1651
|
+
</tbody>
|
|
1652
|
+
</table>
|
|
1653
|
+
</div>
|
|
1654
|
+
|
|
1655
|
+
|
|
1656
|
+
|
|
1657
|
+
|
|
1658
|
+
|
|
1659
|
+
|
|
1660
|
+
<dl class="details">
|
|
1661
|
+
|
|
1662
|
+
|
|
1663
|
+
|
|
1664
|
+
|
|
1665
|
+
|
|
1666
|
+
|
|
1667
|
+
|
|
1668
|
+
|
|
1669
|
+
|
|
1670
|
+
|
|
1671
|
+
|
|
1672
|
+
|
|
1673
|
+
|
|
1674
|
+
|
|
1675
|
+
|
|
1676
|
+
|
|
1677
|
+
|
|
1678
|
+
|
|
1679
|
+
|
|
1680
|
+
|
|
1681
|
+
|
|
1682
|
+
|
|
1683
|
+
|
|
1684
|
+
|
|
1685
|
+
|
|
1686
|
+
|
|
1687
|
+
|
|
1688
|
+
|
|
1689
|
+
|
|
1690
|
+
|
|
1691
|
+
|
|
1692
|
+
</dl>
|
|
1693
|
+
|
|
1694
|
+
|
|
1695
|
+
|
|
1696
|
+
|
|
1697
|
+
|
|
1698
|
+
|
|
1699
|
+
|
|
1700
|
+
|
|
1701
|
+
|
|
1702
|
+
|
|
1703
|
+
|
|
1704
|
+
|
|
1705
|
+
|
|
1706
|
+
|
|
1707
|
+
|
|
1708
|
+
|
|
1709
|
+
|
|
1710
|
+
|
|
1711
|
+
|
|
1712
|
+
|
|
1713
|
+
|
|
1714
|
+
|
|
1715
|
+
|
|
1716
|
+
<h5>示例</h5>
|
|
1717
|
+
|
|
1718
|
+
<p class="code-caption"><h5>获取图层列表信息-回调方式</h5></p>
|
|
1719
|
+
|
|
1720
|
+
|
|
1721
|
+
<pre class="prettyprint"><code>sceneServer.queryLayerListInfoBySceneName({
|
|
1722
|
+
success: function (result) {
|
|
1723
|
+
console.log('请求成功:', result);
|
|
1724
|
+
},
|
|
1725
|
+
failure: function (result) {
|
|
1726
|
+
console.log('请求失败:', result);
|
|
1727
|
+
}
|
|
1728
|
+
});</code></pre>
|
|
1729
|
+
|
|
1730
|
+
|
|
1731
|
+
<p class="code-caption"><h5>获取图层列表信息-promise方式</h5></p>
|
|
1732
|
+
|
|
1733
|
+
|
|
1734
|
+
<pre class="prettyprint"><code>const server = sceneServer.queryLayerListInfoBySceneName();
|
|
1735
|
+
server.then(function (result) {
|
|
1736
|
+
console.log('请求成功:', result);
|
|
1737
|
+
}).catch(function (result) {
|
|
1738
|
+
console.log('请求失败:', result);
|
|
1739
|
+
})</code></pre>
|
|
1740
|
+
|
|
1741
|
+
|
|
1742
|
+
|
|
1743
|
+
</div>
|
|
1744
|
+
|
|
1745
|
+
<div class="member">
|
|
1746
|
+
|
|
1747
|
+
|
|
1748
|
+
|
|
1749
|
+
<h4 class="name" id="querySceneListInfo">
|
|
1750
|
+
<a class="href-link" href="#querySceneListInfo">#</a>
|
|
1751
|
+
|
|
1752
|
+
<span class="code-name" id="querySceneListInfo" style="font-size:30px">
|
|
1753
|
+
|
|
1754
|
+
querySceneListInfo<span class="signature">(options)</span>
|
|
1755
|
+
|
|
1756
|
+
</span>
|
|
1757
|
+
</h4>
|
|
1758
|
+
|
|
1759
|
+
|
|
1760
|
+
|
|
1761
|
+
<div class="description">
|
|
1762
|
+
<p>获取三维服务中所有的场景列表</p>
|
|
1763
|
+
</div>
|
|
1764
|
+
|
|
1765
|
+
|
|
1766
|
+
|
|
1767
|
+
|
|
1768
|
+
|
|
1769
|
+
|
|
1770
|
+
|
|
1771
|
+
|
|
1772
|
+
|
|
1773
|
+
|
|
1774
|
+
<h4>参数</h4>
|
|
1775
|
+
|
|
1776
|
+
<div class="table-container">
|
|
1777
|
+
<table class="params table">
|
|
1778
|
+
<thead>
|
|
1779
|
+
<tr>
|
|
1780
|
+
|
|
1781
|
+
<th>名称</th>
|
|
1782
|
+
|
|
1783
|
+
|
|
1784
|
+
<th>类型</th>
|
|
1785
|
+
|
|
1786
|
+
|
|
1787
|
+
|
|
1788
|
+
<th class="last">描述</th>
|
|
1789
|
+
</tr>
|
|
1790
|
+
</thead>
|
|
1791
|
+
|
|
1792
|
+
<tbody>
|
|
1793
|
+
|
|
1794
|
+
|
|
1795
|
+
|
|
1796
|
+
<tr class="deep-level-0">
|
|
1797
|
+
|
|
1798
|
+
<td class="name"><code>options</code></td>
|
|
1799
|
+
|
|
1800
|
+
|
|
1801
|
+
<td class="type">
|
|
1802
|
+
|
|
1803
|
+
</td>
|
|
1804
|
+
|
|
1805
|
+
|
|
1806
|
+
|
|
1807
|
+
<td class="description last"></td>
|
|
1808
|
+
</tr>
|
|
1809
|
+
|
|
1810
|
+
|
|
1811
|
+
|
|
1812
|
+
|
|
1813
|
+
<tr class="deep-level-1">
|
|
1814
|
+
|
|
1815
|
+
<td class="name"><code>success</code></td>
|
|
1816
|
+
|
|
1817
|
+
|
|
1818
|
+
<td class="type">
|
|
1819
|
+
|
|
1820
|
+
|
|
1821
|
+
<span class="param-type">
|
|
1822
|
+
|
|
1823
|
+
function
|
|
1824
|
+
|
|
1825
|
+
</span>
|
|
1826
|
+
|
|
1827
|
+
|
|
1828
|
+
|
|
1829
|
+
|
|
1830
|
+
</td>
|
|
1831
|
+
|
|
1832
|
+
|
|
1833
|
+
|
|
1834
|
+
<td class="description last"><p>查询成功回调函数,若使用Promise方式则不必填写</p></td>
|
|
1835
|
+
</tr>
|
|
1836
|
+
|
|
1837
|
+
|
|
1838
|
+
|
|
1839
|
+
|
|
1840
|
+
<tr class="deep-level-1">
|
|
1841
|
+
|
|
1842
|
+
<td class="name"><code>failure</code></td>
|
|
1843
|
+
|
|
1844
|
+
|
|
1845
|
+
<td class="type">
|
|
1846
|
+
|
|
1847
|
+
|
|
1848
|
+
<span class="param-type">
|
|
1849
|
+
|
|
1850
|
+
<a link="queryFailure.html" onclick="getTypeHTML(event)" class="mapgis-link-name" title="queryFailure" global.html#queryFailure>queryFailure</a>
|
|
1851
|
+
|
|
1852
|
+
</span>
|
|
1853
|
+
|
|
1854
|
+
|
|
1855
|
+
|
|
1856
|
+
|
|
1857
|
+
</td>
|
|
1858
|
+
|
|
1859
|
+
|
|
1860
|
+
|
|
1861
|
+
<td class="description last"><p>查询失败回调函数,若使用Promise方式则不必填写</p></td>
|
|
1862
|
+
</tr>
|
|
1863
|
+
|
|
1864
|
+
|
|
1865
|
+
|
|
1866
|
+
|
|
1867
|
+
|
|
1868
|
+
|
|
1869
|
+
|
|
1870
|
+
</tbody>
|
|
1871
|
+
</table>
|
|
1872
|
+
</div>
|
|
1873
|
+
|
|
1874
|
+
|
|
1875
|
+
|
|
1876
|
+
|
|
1877
|
+
|
|
1878
|
+
|
|
1879
|
+
<dl class="details">
|
|
1880
|
+
|
|
1881
|
+
|
|
1882
|
+
|
|
1883
|
+
|
|
1884
|
+
|
|
1885
|
+
|
|
1886
|
+
|
|
1887
|
+
|
|
1888
|
+
|
|
1889
|
+
|
|
1890
|
+
|
|
1891
|
+
|
|
1892
|
+
|
|
1893
|
+
|
|
1894
|
+
|
|
1895
|
+
|
|
1896
|
+
|
|
1897
|
+
|
|
1898
|
+
|
|
1899
|
+
|
|
1900
|
+
|
|
1901
|
+
|
|
1902
|
+
|
|
1903
|
+
|
|
1904
|
+
|
|
1905
|
+
|
|
1906
|
+
|
|
1907
|
+
|
|
1908
|
+
|
|
1909
|
+
|
|
1910
|
+
|
|
1911
|
+
</dl>
|
|
1912
|
+
|
|
1913
|
+
|
|
1914
|
+
|
|
1915
|
+
|
|
1916
|
+
|
|
1917
|
+
|
|
1918
|
+
|
|
1919
|
+
|
|
1920
|
+
|
|
1921
|
+
|
|
1922
|
+
|
|
1923
|
+
|
|
1924
|
+
|
|
1925
|
+
|
|
1926
|
+
|
|
1927
|
+
|
|
1928
|
+
|
|
1929
|
+
|
|
1930
|
+
<div class='columns method-parameter'>
|
|
1931
|
+
<div class="column is-2"><label>返回值</label></div>
|
|
1932
|
+
<div class="column is-10">
|
|
1933
|
+
|
|
1934
|
+
|
|
1935
|
+
|
|
1936
|
+
<div class="columns">
|
|
1937
|
+
|
|
1938
|
+
<div class='param-desc column is-7'><p>Promise对象</p></div>
|
|
1939
|
+
|
|
1940
|
+
|
|
1941
|
+
<div class='column is-5 has-text-left'>
|
|
1942
|
+
<label>类型: </label>
|
|
1943
|
+
|
|
1944
|
+
<span class="param-type">
|
|
1945
|
+
|
|
1946
|
+
Promise.<Object>
|
|
1947
|
+
|
|
1948
|
+
</span>
|
|
1949
|
+
|
|
1950
|
+
|
|
1951
|
+
|
|
1952
|
+
</div>
|
|
1953
|
+
|
|
1954
|
+
</div>
|
|
1955
|
+
|
|
1956
|
+
|
|
1957
|
+
</div>
|
|
1958
|
+
</div>
|
|
1959
|
+
|
|
1960
|
+
|
|
1961
|
+
|
|
1962
|
+
|
|
1963
|
+
|
|
1964
|
+
|
|
1965
|
+
<h5>示例</h5>
|
|
1966
|
+
|
|
1967
|
+
<p class="code-caption"><h5>获取三维服务中所有的场景列表</h5></p>
|
|
1968
|
+
|
|
1969
|
+
|
|
1970
|
+
<pre class="prettyprint"><code>sceneServer.querySceneListInfo()
|
|
1971
|
+
.then((result) => {
|
|
1972
|
+
console.log('查询成功:', result)
|
|
1973
|
+
})
|
|
1974
|
+
.catch((result) => {
|
|
1975
|
+
console.log('查询失败:', result)
|
|
1976
|
+
})</code></pre>
|
|
1977
|
+
|
|
1978
|
+
|
|
1979
|
+
|
|
1980
|
+
</div>
|
|
1981
|
+
|
|
1982
|
+
<div class="member">
|
|
1983
|
+
|
|
1984
|
+
|
|
1985
|
+
|
|
1986
|
+
<h4 class="name" id="queryServerInfo">
|
|
1987
|
+
<a class="href-link" href="#queryServerInfo">#</a>
|
|
1988
|
+
|
|
1989
|
+
<span class="code-name" id="queryServerInfo" style="font-size:30px">
|
|
1990
|
+
|
|
1991
|
+
queryServerInfo<span class="signature">(options)</span>
|
|
1992
|
+
|
|
1993
|
+
</span>
|
|
1994
|
+
</h4>
|
|
1995
|
+
|
|
1996
|
+
|
|
1997
|
+
|
|
1998
|
+
<div class="description">
|
|
1999
|
+
<p>获取服务信息,IGS2.0新增服务</p>
|
|
2000
|
+
</div>
|
|
2001
|
+
|
|
2002
|
+
|
|
2003
|
+
|
|
2004
|
+
|
|
2005
|
+
|
|
2006
|
+
|
|
2007
|
+
|
|
2008
|
+
|
|
2009
|
+
|
|
2010
|
+
|
|
2011
|
+
<h4>参数</h4>
|
|
2012
|
+
|
|
2013
|
+
<div class="table-container">
|
|
2014
|
+
<table class="params table">
|
|
2015
|
+
<thead>
|
|
2016
|
+
<tr>
|
|
2017
|
+
|
|
2018
|
+
<th>名称</th>
|
|
2019
|
+
|
|
2020
|
+
|
|
2021
|
+
<th>类型</th>
|
|
2022
|
+
|
|
2023
|
+
|
|
2024
|
+
<th style="min-width: 100px;">默认值</th>
|
|
2025
|
+
|
|
2026
|
+
|
|
2027
|
+
<th class="last">描述</th>
|
|
2028
|
+
</tr>
|
|
2029
|
+
</thead>
|
|
2030
|
+
|
|
2031
|
+
<tbody>
|
|
2032
|
+
|
|
2033
|
+
|
|
2034
|
+
|
|
2035
|
+
<tr class="deep-level-0">
|
|
2036
|
+
|
|
2037
|
+
<td class="name"><code>options</code></td>
|
|
2038
|
+
|
|
2039
|
+
|
|
2040
|
+
<td class="type">
|
|
2041
|
+
|
|
2042
|
+
</td>
|
|
2043
|
+
|
|
2044
|
+
|
|
2045
|
+
<td class="default">
|
|
2046
|
+
|
|
2047
|
+
</td>
|
|
2048
|
+
|
|
2049
|
+
|
|
2050
|
+
<td class="description last"><p>查询参数</p></td>
|
|
2051
|
+
</tr>
|
|
2052
|
+
|
|
2053
|
+
|
|
2054
|
+
|
|
2055
|
+
|
|
2056
|
+
<tr class="deep-level-1">
|
|
2057
|
+
|
|
2058
|
+
<td class="name"><code>success</code></td>
|
|
2059
|
+
|
|
2060
|
+
|
|
2061
|
+
<td class="type">
|
|
2062
|
+
|
|
2063
|
+
|
|
2064
|
+
<span class="param-type">
|
|
2065
|
+
|
|
2066
|
+
function
|
|
2067
|
+
|
|
2068
|
+
</span>
|
|
2069
|
+
|
|
2070
|
+
|
|
2071
|
+
|
|
2072
|
+
|
|
2073
|
+
</td>
|
|
2074
|
+
|
|
2075
|
+
|
|
2076
|
+
<td class="default">
|
|
2077
|
+
|
|
2078
|
+
无
|
|
2079
|
+
|
|
2080
|
+
</td>
|
|
2081
|
+
|
|
2082
|
+
|
|
2083
|
+
<td class="description last"><p>查询成功回调函数,若使用Promise方式则不必填写</p></td>
|
|
2084
|
+
</tr>
|
|
2085
|
+
|
|
2086
|
+
|
|
2087
|
+
|
|
2088
|
+
|
|
2089
|
+
<tr class="deep-level-1">
|
|
2090
|
+
|
|
2091
|
+
<td class="name"><code>failure</code></td>
|
|
2092
|
+
|
|
2093
|
+
|
|
2094
|
+
<td class="type">
|
|
2095
|
+
|
|
2096
|
+
|
|
2097
|
+
<span class="param-type">
|
|
2098
|
+
|
|
2099
|
+
function
|
|
2100
|
+
|
|
2101
|
+
</span>
|
|
2102
|
+
|
|
2103
|
+
|
|
2104
|
+
|
|
2105
|
+
|
|
2106
|
+
</td>
|
|
2107
|
+
|
|
2108
|
+
|
|
2109
|
+
<td class="default">
|
|
2110
|
+
|
|
2111
|
+
无
|
|
2112
|
+
|
|
2113
|
+
</td>
|
|
2114
|
+
|
|
2115
|
+
|
|
2116
|
+
<td class="description last"><p>查询失败回调函数,若使用Promise方式则不必填写</p></td>
|
|
2117
|
+
</tr>
|
|
2118
|
+
|
|
2119
|
+
|
|
2120
|
+
|
|
2121
|
+
|
|
2122
|
+
|
|
2123
|
+
|
|
2124
|
+
|
|
2125
|
+
</tbody>
|
|
2126
|
+
</table>
|
|
2127
|
+
</div>
|
|
2128
|
+
|
|
2129
|
+
|
|
2130
|
+
|
|
2131
|
+
|
|
2132
|
+
|
|
2133
|
+
|
|
2134
|
+
<dl class="details">
|
|
2135
|
+
|
|
2136
|
+
|
|
2137
|
+
|
|
2138
|
+
|
|
2139
|
+
|
|
2140
|
+
|
|
2141
|
+
<dt class="inherited-from">Inherited From:</dt>
|
|
2142
|
+
<dd class="inherited-from"><ul class="dummy"><li>
|
|
2143
|
+
<a goto="queryServerInfo" link="BaseServer.html" onclick="getTypeHTML(event)" class="mapgis-link-name" title="BaseServer#queryServerInfo" BaseServer.html#queryServerInfo>BaseServer#queryServerInfo</a>
|
|
2144
|
+
</li></ul></dd>
|
|
2145
|
+
|
|
2146
|
+
|
|
2147
|
+
|
|
2148
|
+
|
|
2149
|
+
|
|
2150
|
+
|
|
2151
|
+
|
|
2152
|
+
|
|
2153
|
+
|
|
2154
|
+
|
|
2155
|
+
|
|
2156
|
+
|
|
2157
|
+
|
|
2158
|
+
|
|
2159
|
+
|
|
2160
|
+
|
|
2161
|
+
|
|
2162
|
+
|
|
2163
|
+
|
|
2164
|
+
|
|
2165
|
+
|
|
2166
|
+
|
|
2167
|
+
|
|
2168
|
+
|
|
2169
|
+
|
|
2170
|
+
|
|
2171
|
+
</dl>
|
|
2172
|
+
|
|
2173
|
+
|
|
2174
|
+
|
|
2175
|
+
|
|
2176
|
+
|
|
2177
|
+
|
|
2178
|
+
|
|
2179
|
+
|
|
2180
|
+
|
|
2181
|
+
|
|
2182
|
+
|
|
2183
|
+
|
|
2184
|
+
|
|
2185
|
+
|
|
2186
|
+
|
|
2187
|
+
|
|
2188
|
+
|
|
2189
|
+
|
|
2190
|
+
|
|
2191
|
+
|
|
2192
|
+
|
|
2193
|
+
|
|
2194
|
+
|
|
2195
|
+
<h5>示例</h5>
|
|
2196
|
+
|
|
2197
|
+
<p class="code-caption"><h5>获取服务信息-回调方式</h5></p>
|
|
2198
|
+
|
|
2199
|
+
|
|
2200
|
+
<pre class="prettyprint"><code>server.queryServerInfo({
|
|
2201
|
+
success: function (result) {
|
|
2202
|
+
console.log('请求成功:', result);
|
|
2203
|
+
},
|
|
2204
|
+
failure: function (result) {
|
|
2205
|
+
console.log('请求失败:', result);
|
|
2206
|
+
}
|
|
2207
|
+
});</code></pre>
|
|
2208
|
+
|
|
2209
|
+
|
|
2210
|
+
<p class="code-caption"><h5>获取服务信息-promise方式</h5></p>
|
|
2211
|
+
|
|
2212
|
+
|
|
2213
|
+
<pre class="prettyprint"><code>server.queryServerInfo({
|
|
2214
|
+
})
|
|
2215
|
+
.then(function (result) {
|
|
2216
|
+
console.log('请求成功:', result);
|
|
2217
|
+
}).catch(function (result) {
|
|
2218
|
+
console.log('请求失败:', result);
|
|
2219
|
+
});</code></pre>
|
|
2220
|
+
|
|
2221
|
+
|
|
2222
|
+
|
|
2223
|
+
</div>
|
|
2224
|
+
|
|
2225
|
+
</div>
|
|
2226
|
+
</div>
|
|
2227
|
+
|
|
2228
|
+
|
|
2229
|
+
|
|
2230
|
+
|
|
2231
|
+
|
|
2232
|
+
</article>
|
|
2233
|
+
|
|
2234
|
+
</section>
|