@mapgis/webclient-cesium-plugin 17.0.4 → 17.0.7
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 +33 -0
- package/dist/es5/webclient-cesium-plugin.min.js +2 -2
- package/dist/es5/webclient-common.min.js +2 -2
- package/dist/webclient-cesium-plugin-es6.min.js +2 -2
- package/documention/ArcGISMapServerImageryProvider.html +112 -42
- package/documention/ArcGISTileServerImageryProvider.html +76 -30
- package/documention/CustomTilingScheme.html +248 -68
- package/documention/DynamicEntityVisualizer.html +18 -6
- package/documention/DynamicLabelLayer.html +168 -44
- package/documention/GeoJSONLayerUtil.html +21 -5
- package/documention/GraphicsLayerUtil.html +21 -5
- package/documention/HashMap.html +80 -16
- package/documention/IGSFeatureLayerUtil.html +21 -5
- package/documention/IGSSceneLayerUtil.html +178 -54
- package/documention/MapGISMapServerImageryProvider.html +334 -153
- package/documention/MapGISTerrainProvider.html +336 -80
- package/documention/MapGISTileServerImageryProvider.html +308 -86
- package/documention/MapGISVectorTileImageryProvider.html +407 -103
- package/documention/Popup.html +119 -31
- package/documention/SceneViewCesium.html +576 -177
- package/documention/Screenshot.html +30 -10
- package/documention/SketchEditorCesium.html +135 -43
- package/documention/UrlTemplateImageryProvider.html +23 -7
- package/documention/WFSLayerUtil.html +21 -5
- package/documention/WebMapServiceImageryProvider.html +22 -12
- package/documention/WebMapTileServiceImageryProvider.html +22 -12
- package/documention/global.html +17 -5
- package/documention/index.html +4 -4
- package/documention/module-%E5%AE%A2%E6%88%B7%E7%AB%AF%E5%8F%AF%E8%A7%86%E5%8C%96.EchartsLayer.html +7 -3
- package/documention/module-%E5%AE%A2%E6%88%B7%E7%AB%AF%E5%8F%AF%E8%A7%86%E5%8C%96.MapVLayer.html +81 -29
- package/documention/module.exports_module.exports.html +36 -12
- package/documention/scripts/sideBar.js +111 -6
- package/package.json +1 -1
- package/documention/FeatureLayerUtil.html +0 -471
- package/documention/MapGISTileServerImageProvider.html +0 -2150
- package/documention/SceneView.html +0 -4250
|
@@ -73,13 +73,17 @@
|
|
|
73
73
|
|
|
74
74
|
<tr class="deep-level-0">
|
|
75
75
|
|
|
76
|
-
<td class="name"
|
|
76
|
+
<td class="name"><code>options</code></td>
|
|
77
77
|
|
|
78
78
|
|
|
79
79
|
<td class="type">
|
|
80
80
|
|
|
81
81
|
|
|
82
|
-
<span class="param-type">
|
|
82
|
+
<span class="param-type">
|
|
83
|
+
|
|
84
|
+
Object
|
|
85
|
+
|
|
86
|
+
</span>
|
|
83
87
|
|
|
84
88
|
|
|
85
89
|
|
|
@@ -100,13 +104,17 @@
|
|
|
100
104
|
|
|
101
105
|
<tr class="deep-level-1">
|
|
102
106
|
|
|
103
|
-
<td class="name"
|
|
107
|
+
<td class="name"><code>url</code></td>
|
|
104
108
|
|
|
105
109
|
|
|
106
110
|
<td class="type">
|
|
107
111
|
|
|
108
112
|
|
|
109
|
-
<span class="param-type">
|
|
113
|
+
<span class="param-type">
|
|
114
|
+
|
|
115
|
+
String
|
|
116
|
+
|
|
117
|
+
</span>
|
|
110
118
|
|
|
111
119
|
|
|
112
120
|
|
|
@@ -127,13 +135,17 @@
|
|
|
127
135
|
|
|
128
136
|
<tr class="deep-level-1">
|
|
129
137
|
|
|
130
|
-
<td class="name"
|
|
138
|
+
<td class="name"><code>httpMethod</code></td>
|
|
131
139
|
|
|
132
140
|
|
|
133
141
|
<td class="type">
|
|
134
142
|
|
|
135
143
|
|
|
136
|
-
<span class="param-type">
|
|
144
|
+
<span class="param-type">
|
|
145
|
+
|
|
146
|
+
String
|
|
147
|
+
|
|
148
|
+
</span>
|
|
137
149
|
|
|
138
150
|
|
|
139
151
|
|
|
@@ -154,13 +166,17 @@
|
|
|
154
166
|
|
|
155
167
|
<tr class="deep-level-1">
|
|
156
168
|
|
|
157
|
-
<td class="name"
|
|
169
|
+
<td class="name"><code>headers</code></td>
|
|
158
170
|
|
|
159
171
|
|
|
160
172
|
<td class="type">
|
|
161
173
|
|
|
162
174
|
|
|
163
|
-
<span class="param-type">
|
|
175
|
+
<span class="param-type">
|
|
176
|
+
|
|
177
|
+
Object
|
|
178
|
+
|
|
179
|
+
</span>
|
|
164
180
|
|
|
165
181
|
|
|
166
182
|
|
|
@@ -181,13 +197,17 @@
|
|
|
181
197
|
|
|
182
198
|
<tr class="deep-level-1">
|
|
183
199
|
|
|
184
|
-
<td class="name"
|
|
200
|
+
<td class="name"><code>enablePickFeatures</code></td>
|
|
185
201
|
|
|
186
202
|
|
|
187
203
|
<td class="type">
|
|
188
204
|
|
|
189
205
|
|
|
190
|
-
<span class="param-type">
|
|
206
|
+
<span class="param-type">
|
|
207
|
+
|
|
208
|
+
Boolean
|
|
209
|
+
|
|
210
|
+
</span>
|
|
191
211
|
|
|
192
212
|
|
|
193
213
|
|
|
@@ -210,13 +230,17 @@
|
|
|
210
230
|
|
|
211
231
|
<tr class="deep-level-1">
|
|
212
232
|
|
|
213
|
-
<td class="name"
|
|
233
|
+
<td class="name"><code>tileWidth</code></td>
|
|
214
234
|
|
|
215
235
|
|
|
216
236
|
<td class="type">
|
|
217
237
|
|
|
218
238
|
|
|
219
|
-
<span class="param-type">
|
|
239
|
+
<span class="param-type">
|
|
240
|
+
|
|
241
|
+
Number
|
|
242
|
+
|
|
243
|
+
</span>
|
|
220
244
|
|
|
221
245
|
|
|
222
246
|
|
|
@@ -239,13 +263,17 @@
|
|
|
239
263
|
|
|
240
264
|
<tr class="deep-level-1">
|
|
241
265
|
|
|
242
|
-
<td class="name"
|
|
266
|
+
<td class="name"><code>tileHeight</code></td>
|
|
243
267
|
|
|
244
268
|
|
|
245
269
|
<td class="type">
|
|
246
270
|
|
|
247
271
|
|
|
248
|
-
<span class="param-type">
|
|
272
|
+
<span class="param-type">
|
|
273
|
+
|
|
274
|
+
Number
|
|
275
|
+
|
|
276
|
+
</span>
|
|
249
277
|
|
|
250
278
|
|
|
251
279
|
|
|
@@ -268,13 +296,17 @@
|
|
|
268
296
|
|
|
269
297
|
<tr class="deep-level-1">
|
|
270
298
|
|
|
271
|
-
<td class="name"
|
|
299
|
+
<td class="name"><code>minimumLevel</code></td>
|
|
272
300
|
|
|
273
301
|
|
|
274
302
|
<td class="type">
|
|
275
303
|
|
|
276
304
|
|
|
277
|
-
<span class="param-type">
|
|
305
|
+
<span class="param-type">
|
|
306
|
+
|
|
307
|
+
Number
|
|
308
|
+
|
|
309
|
+
</span>
|
|
278
310
|
|
|
279
311
|
|
|
280
312
|
|
|
@@ -297,13 +329,17 @@
|
|
|
297
329
|
|
|
298
330
|
<tr class="deep-level-1">
|
|
299
331
|
|
|
300
|
-
<td class="name"
|
|
332
|
+
<td class="name"><code>maximumLevel</code></td>
|
|
301
333
|
|
|
302
334
|
|
|
303
335
|
<td class="type">
|
|
304
336
|
|
|
305
337
|
|
|
306
|
-
<span class="param-type">
|
|
338
|
+
<span class="param-type">
|
|
339
|
+
|
|
340
|
+
Number
|
|
341
|
+
|
|
342
|
+
</span>
|
|
307
343
|
|
|
308
344
|
|
|
309
345
|
|
|
@@ -326,13 +362,17 @@
|
|
|
326
362
|
|
|
327
363
|
<tr class="deep-level-1">
|
|
328
364
|
|
|
329
|
-
<td class="name"
|
|
365
|
+
<td class="name"><code>layers</code></td>
|
|
330
366
|
|
|
331
367
|
|
|
332
368
|
<td class="type">
|
|
333
369
|
|
|
334
370
|
|
|
335
|
-
<span class="param-type">
|
|
371
|
+
<span class="param-type">
|
|
372
|
+
|
|
373
|
+
String
|
|
374
|
+
|
|
375
|
+
</span>
|
|
336
376
|
|
|
337
377
|
|
|
338
378
|
|
|
@@ -353,13 +393,17 @@
|
|
|
353
393
|
|
|
354
394
|
<tr class="deep-level-1">
|
|
355
395
|
|
|
356
|
-
<td class="name"
|
|
396
|
+
<td class="name"><code>filters</code></td>
|
|
357
397
|
|
|
358
398
|
|
|
359
399
|
<td class="type">
|
|
360
400
|
|
|
361
401
|
|
|
362
|
-
<span class="param-type">
|
|
402
|
+
<span class="param-type">
|
|
403
|
+
|
|
404
|
+
String
|
|
405
|
+
|
|
406
|
+
</span>
|
|
363
407
|
|
|
364
408
|
|
|
365
409
|
|
|
@@ -380,13 +424,17 @@
|
|
|
380
424
|
|
|
381
425
|
<tr class="deep-level-1">
|
|
382
426
|
|
|
383
|
-
<td class="name"
|
|
427
|
+
<td class="name"><code>tilingScheme</code></td>
|
|
384
428
|
|
|
385
429
|
|
|
386
430
|
<td class="type">
|
|
387
431
|
|
|
388
432
|
|
|
389
|
-
<span class="param-type">
|
|
433
|
+
<span class="param-type">
|
|
434
|
+
|
|
435
|
+
Object
|
|
436
|
+
|
|
437
|
+
</span>
|
|
390
438
|
|
|
391
439
|
|
|
392
440
|
|
|
@@ -407,13 +455,17 @@
|
|
|
407
455
|
|
|
408
456
|
<tr class="deep-level-1">
|
|
409
457
|
|
|
410
|
-
<td class="name"
|
|
458
|
+
<td class="name"><code>proxy</code></td>
|
|
411
459
|
|
|
412
460
|
|
|
413
461
|
<td class="type">
|
|
414
462
|
|
|
415
463
|
|
|
416
|
-
<span class="param-type">
|
|
464
|
+
<span class="param-type">
|
|
465
|
+
|
|
466
|
+
String
|
|
467
|
+
|
|
468
|
+
</span>
|
|
417
469
|
|
|
418
470
|
|
|
419
471
|
|
|
@@ -434,13 +486,17 @@
|
|
|
434
486
|
|
|
435
487
|
<tr class="deep-level-1">
|
|
436
488
|
|
|
437
|
-
<td class="name"
|
|
489
|
+
<td class="name"><code>rectangle</code></td>
|
|
438
490
|
|
|
439
491
|
|
|
440
492
|
<td class="type">
|
|
441
493
|
|
|
442
494
|
|
|
443
|
-
<span class="param-type">
|
|
495
|
+
<span class="param-type">
|
|
496
|
+
|
|
497
|
+
Object
|
|
498
|
+
|
|
499
|
+
</span>
|
|
444
500
|
|
|
445
501
|
|
|
446
502
|
|
|
@@ -463,13 +519,17 @@
|
|
|
463
519
|
|
|
464
520
|
<tr class="deep-level-1">
|
|
465
521
|
|
|
466
|
-
<td class="name"
|
|
522
|
+
<td class="name"><code>extensions</code></td>
|
|
467
523
|
|
|
468
524
|
|
|
469
525
|
<td class="type">
|
|
470
526
|
|
|
471
527
|
|
|
472
|
-
<span class="param-type">
|
|
528
|
+
<span class="param-type">
|
|
529
|
+
|
|
530
|
+
Array.<Object>
|
|
531
|
+
|
|
532
|
+
</span>
|
|
473
533
|
|
|
474
534
|
|
|
475
535
|
|
|
@@ -575,12 +635,6 @@
|
|
|
575
635
|
<pre class="prettyprint"><code>// ES5引入方式
|
|
576
636
|
// 服务基地址
|
|
577
637
|
url: url
|
|
578
638
|
// 获取provider的初始化参数
|
|
579
639
|
const options = initializeOptions(layer, viewer)
|
|
580
640
|
// 构造provider对象
|
|
581
641
|
provider = new Cesium.ArcGisMapServerImageryProvider(options)
|
|
582
642
|
// 添加图层到Cesium视图中
|
|
583
643
|
cesiumLayer = viewer.imageryLayers.addImageryProvider(provider)
|
|
584
644
|
|
|
585
645
|
|
|
586
|
-
<p class="code-caption"><h7>添加一个ArcGIS地图服务:混合接口开发</h7></p>
|
|
587
|
-
|
|
588
|
-
|
|
589
|
-
<pre class="prettyprint"><code>// ES5引入方式
|
|
590
646
|
// 服务基地址
|
|
591
647
|
url: url
|
|
592
648
|
// 获取自定义的tilingScheme对象
|
|
593
649
|
const tilingScheme = getTilingSchemeBySpatialReference(
|
|
594
650
|
layer.spatialReference,
|
|
595
651
|
layer.extent
|
|
596
652
|
)
|
|
597
653
|
// 获取图层显示范围
|
|
598
654
|
const extent = getExtent(layer, tilingScheme.rectangle)
|
|
599
655
|
const rectangle = new Cesium.Rectangle(
|
|
600
656
|
extent.xmin,
|
|
601
657
|
extent.ymin,
|
|
602
658
|
extent.xmax,
|
|
603
659
|
extent.ymax
|
|
604
660
|
)
|
|
605
661
|
// 添加图层到Cesium视图中
|
|
606
662
|
cesiumLayer = viewer.imageryLayers.addImageryProvider(
|
|
607
663
|
new Cesium.ArcGisMapServerImageryProvider({
|
|
608
664
|
// ArcGIS MapServer服务地址
|
|
609
665
|
url: layer.url,
|
|
610
666
|
// 是否使用已经预缓存的瓦片方式加载图层,为false表示不使用瓦片方式加载图层,使用export服务加载图层
|
|
611
667
|
usePreCachedTilesIfAvailable: false,
|
|
612
668
|
// 逗号分隔的列表,用于规定加载的图层,未定义表示加载所有的图层
|
|
613
669
|
layers: layer.layers,
|
|
614
670
|
// 地图瓦片的切分方式,经纬度或者Web墨卡托
|
|
615
671
|
tilingScheme,
|
|
616
672
|
// 地图服务的加载范围
|
|
617
673
|
rectangle
|
|
618
674
|
})
|
|
619
675
|
)
|
|
620
|
-
|
|
621
|
-
|
|
622
676
|
|
|
623
677
|
|
|
624
678
|
</div>
|
|
@@ -626,7 +680,11 @@
|
|
|
626
680
|
<code>
|
|
627
681
|
|
|
628
682
|
|
|
629
|
-
<span class="param-type"
|
|
683
|
+
<span class="param-type">
|
|
684
|
+
|
|
685
|
+
<a link="ArcGISMapServerImageryProvider.html" onclick="getTypeHTML(event)" class="mapgis-link-name" title="ArcGISMapServerImageryProvider" ArcGISMapServerImageryProvider.html>ArcGISMapServerImageryProvider</a>
|
|
686
|
+
|
|
687
|
+
</span>
|
|
630
688
|
|
|
631
689
|
|
|
632
690
|
|
|
@@ -696,13 +754,17 @@
|
|
|
696
754
|
|
|
697
755
|
<tr class="deep-level-0">
|
|
698
756
|
|
|
699
|
-
<td class="name"
|
|
757
|
+
<td class="name"><code>url</code></td>
|
|
700
758
|
|
|
701
759
|
|
|
702
760
|
<td class="type">
|
|
703
761
|
|
|
704
762
|
|
|
705
|
-
<span class="param-type">
|
|
763
|
+
<span class="param-type">
|
|
764
|
+
|
|
765
|
+
String
|
|
766
|
+
|
|
767
|
+
</span>
|
|
706
768
|
|
|
707
769
|
|
|
708
770
|
|
|
@@ -721,13 +783,17 @@
|
|
|
721
783
|
|
|
722
784
|
<tr class="deep-level-0">
|
|
723
785
|
|
|
724
|
-
<td class="name"
|
|
786
|
+
<td class="name"><code>options</code></td>
|
|
725
787
|
|
|
726
788
|
|
|
727
789
|
<td class="type">
|
|
728
790
|
|
|
729
791
|
|
|
730
|
-
<span class="param-type">
|
|
792
|
+
<span class="param-type">
|
|
793
|
+
|
|
794
|
+
Object
|
|
795
|
+
|
|
796
|
+
</span>
|
|
731
797
|
|
|
732
798
|
|
|
733
799
|
|
|
@@ -814,7 +880,11 @@
|
|
|
814
880
|
<div class='column is-5 has-text-left'>
|
|
815
881
|
<label>类型: </label>
|
|
816
882
|
|
|
817
|
-
<span class="param-type"
|
|
883
|
+
<span class="param-type">
|
|
884
|
+
|
|
885
|
+
<a link="ArcGISMapServerImageryProvider.html" onclick="getTypeHTML(event)" class="mapgis-link-name" title="ArcGISMapServerImageryProvider" ArcGISMapServerImageryProvider.html>ArcGISMapServerImageryProvider</a>
|
|
886
|
+
|
|
887
|
+
</span>
|
|
818
888
|
|
|
819
889
|
|
|
820
890
|
|
|
@@ -73,13 +73,17 @@
|
|
|
73
73
|
|
|
74
74
|
<tr class="deep-level-0">
|
|
75
75
|
|
|
76
|
-
<td class="name"
|
|
76
|
+
<td class="name"><code>options</code></td>
|
|
77
77
|
|
|
78
78
|
|
|
79
79
|
<td class="type">
|
|
80
80
|
|
|
81
81
|
|
|
82
|
-
<span class="param-type">
|
|
82
|
+
<span class="param-type">
|
|
83
|
+
|
|
84
|
+
Object
|
|
85
|
+
|
|
86
|
+
</span>
|
|
83
87
|
|
|
84
88
|
|
|
85
89
|
|
|
@@ -100,13 +104,17 @@
|
|
|
100
104
|
|
|
101
105
|
<tr class="deep-level-1">
|
|
102
106
|
|
|
103
|
-
<td class="name"
|
|
107
|
+
<td class="name"><code>url</code></td>
|
|
104
108
|
|
|
105
109
|
|
|
106
110
|
<td class="type">
|
|
107
111
|
|
|
108
112
|
|
|
109
|
-
<span class="param-type">
|
|
113
|
+
<span class="param-type">
|
|
114
|
+
|
|
115
|
+
String
|
|
116
|
+
|
|
117
|
+
</span>
|
|
110
118
|
|
|
111
119
|
|
|
112
120
|
|
|
@@ -127,13 +135,17 @@
|
|
|
127
135
|
|
|
128
136
|
<tr class="deep-level-1">
|
|
129
137
|
|
|
130
|
-
<td class="name"
|
|
138
|
+
<td class="name"><code>tileWidth</code></td>
|
|
131
139
|
|
|
132
140
|
|
|
133
141
|
<td class="type">
|
|
134
142
|
|
|
135
143
|
|
|
136
|
-
<span class="param-type">
|
|
144
|
+
<span class="param-type">
|
|
145
|
+
|
|
146
|
+
Number
|
|
147
|
+
|
|
148
|
+
</span>
|
|
137
149
|
|
|
138
150
|
|
|
139
151
|
|
|
@@ -156,13 +168,17 @@
|
|
|
156
168
|
|
|
157
169
|
<tr class="deep-level-1">
|
|
158
170
|
|
|
159
|
-
<td class="name"
|
|
171
|
+
<td class="name"><code>tileHeight</code></td>
|
|
160
172
|
|
|
161
173
|
|
|
162
174
|
<td class="type">
|
|
163
175
|
|
|
164
176
|
|
|
165
|
-
<span class="param-type">
|
|
177
|
+
<span class="param-type">
|
|
178
|
+
|
|
179
|
+
Number
|
|
180
|
+
|
|
181
|
+
</span>
|
|
166
182
|
|
|
167
183
|
|
|
168
184
|
|
|
@@ -185,13 +201,17 @@
|
|
|
185
201
|
|
|
186
202
|
<tr class="deep-level-1">
|
|
187
203
|
|
|
188
|
-
<td class="name"
|
|
204
|
+
<td class="name"><code>minimumLevel</code></td>
|
|
189
205
|
|
|
190
206
|
|
|
191
207
|
<td class="type">
|
|
192
208
|
|
|
193
209
|
|
|
194
|
-
<span class="param-type">
|
|
210
|
+
<span class="param-type">
|
|
211
|
+
|
|
212
|
+
Number
|
|
213
|
+
|
|
214
|
+
</span>
|
|
195
215
|
|
|
196
216
|
|
|
197
217
|
|
|
@@ -214,13 +234,17 @@
|
|
|
214
234
|
|
|
215
235
|
<tr class="deep-level-1">
|
|
216
236
|
|
|
217
|
-
<td class="name"
|
|
237
|
+
<td class="name"><code>maximumLevel</code></td>
|
|
218
238
|
|
|
219
239
|
|
|
220
240
|
<td class="type">
|
|
221
241
|
|
|
222
242
|
|
|
223
|
-
<span class="param-type">
|
|
243
|
+
<span class="param-type">
|
|
244
|
+
|
|
245
|
+
Number
|
|
246
|
+
|
|
247
|
+
</span>
|
|
224
248
|
|
|
225
249
|
|
|
226
250
|
|
|
@@ -243,13 +267,17 @@
|
|
|
243
267
|
|
|
244
268
|
<tr class="deep-level-1">
|
|
245
269
|
|
|
246
|
-
<td class="name"
|
|
270
|
+
<td class="name"><code>tilingScheme</code></td>
|
|
247
271
|
|
|
248
272
|
|
|
249
273
|
<td class="type">
|
|
250
274
|
|
|
251
275
|
|
|
252
|
-
<span class="param-type">
|
|
276
|
+
<span class="param-type">
|
|
277
|
+
|
|
278
|
+
Object
|
|
279
|
+
|
|
280
|
+
</span>
|
|
253
281
|
|
|
254
282
|
|
|
255
283
|
|
|
@@ -270,13 +298,17 @@
|
|
|
270
298
|
|
|
271
299
|
<tr class="deep-level-1">
|
|
272
300
|
|
|
273
|
-
<td class="name"
|
|
301
|
+
<td class="name"><code>rectangle</code></td>
|
|
274
302
|
|
|
275
303
|
|
|
276
304
|
<td class="type">
|
|
277
305
|
|
|
278
306
|
|
|
279
|
-
<span class="param-type">
|
|
307
|
+
<span class="param-type">
|
|
308
|
+
|
|
309
|
+
Object
|
|
310
|
+
|
|
311
|
+
</span>
|
|
280
312
|
|
|
281
313
|
|
|
282
314
|
|
|
@@ -299,13 +331,17 @@
|
|
|
299
331
|
|
|
300
332
|
<tr class="deep-level-1">
|
|
301
333
|
|
|
302
|
-
<td class="name"
|
|
334
|
+
<td class="name"><code>proxy</code></td>
|
|
303
335
|
|
|
304
336
|
|
|
305
337
|
<td class="type">
|
|
306
338
|
|
|
307
339
|
|
|
308
|
-
<span class="param-type">
|
|
340
|
+
<span class="param-type">
|
|
341
|
+
|
|
342
|
+
String
|
|
343
|
+
|
|
344
|
+
</span>
|
|
309
345
|
|
|
310
346
|
|
|
311
347
|
|
|
@@ -409,12 +445,6 @@
|
|
|
409
445
|
<pre class="prettyprint"><code>// ES5引入方式
|
|
410
446
|
// 获取provider的初始化参数
|
|
411
447
|
const options = initializeOptions(layer, viewer)
|
|
412
448
|
// 构造provider对象
|
|
413
449
|
provider = new Cesium.UrlTemplateImageryProvider(options)
|
|
414
450
|
// 添加图层到Cesium视图中
|
|
415
451
|
cesiumLayer = viewer.imageryLayers.addImageryProvider(provider)
|
|
416
452
|
|
|
417
453
|
|
|
418
|
-
<p class="code-caption"><h7>添加一个ArcGIS瓦片服务:混合接口开发</h7></p>
|
|
419
|
-
|
|
420
|
-
|
|
421
|
-
<pre class="prettyprint"><code>// ES5引入方式
|
|
422
454
|
// 构造自定义的tilingScheme对象
|
|
423
455
|
const tilingScheme = getTilingSchemeBySpatialReference(
|
|
424
456
|
layer.spatialReference,
|
|
425
457
|
layer.extent,
|
|
426
458
|
layer.tileInfo
|
|
427
459
|
)
|
|
428
460
|
// 设置图层范围,超过范围不请求瓦片
|
|
429
461
|
const extent = getExtent(layer, tilingScheme.rectangle)
|
|
430
462
|
const rectangle = new Cesium.Rectangle(
|
|
431
463
|
extent.xmin,
|
|
432
464
|
extent.ymin,
|
|
433
465
|
extent.xmax,
|
|
434
466
|
extent.ymax
|
|
435
467
|
)
|
|
436
468
|
// 添加图层到Cesium中
|
|
437
469
|
cesiumLayer = viewer.imageryLayers.addImageryProvider(
|
|
438
470
|
new Cesium.UrlTemplateImageryProvider({
|
|
439
471
|
// 请求瓦片的url模板,{x}、{y}、{z}分别表示瓦片的x坐标、y坐标和层级
|
|
440
472
|
url: `${layer.url}/tile/{z}/{y}/{x}`,
|
|
441
473
|
// 地图瓦片的切分方式,经纬度或者Web墨卡托
|
|
442
474
|
tilingScheme,
|
|
443
475
|
// 瓦片宽度
|
|
444
476
|
tileWidth: layer.tileInfo.cols,
|
|
445
477
|
// 瓦片高度
|
|
446
478
|
tileHeight: layer.tileInfo.cols,
|
|
447
479
|
// 瓦片服务的加载范围
|
|
448
480
|
rectangle
|
|
449
481
|
})
|
|
450
482
|
)
|
|
451
|
-
|
|
452
|
-
|
|
453
483
|
|
|
454
484
|
|
|
455
485
|
</div>
|
|
@@ -460,7 +490,11 @@
|
|
|
460
490
|
<code>
|
|
461
491
|
|
|
462
492
|
|
|
463
|
-
<span class="param-type"
|
|
493
|
+
<span class="param-type">
|
|
494
|
+
|
|
495
|
+
<a link="ArcGISTileServerImageryProvider.html" onclick="getTypeHTML(event)" class="mapgis-link-name" title="ArcGISTileServerImageryProvider" ArcGISTileServerImageryProvider.html>ArcGISTileServerImageryProvider</a>
|
|
496
|
+
|
|
497
|
+
</span>
|
|
464
498
|
|
|
465
499
|
|
|
466
500
|
|
|
@@ -530,13 +564,17 @@
|
|
|
530
564
|
|
|
531
565
|
<tr class="deep-level-0">
|
|
532
566
|
|
|
533
|
-
<td class="name"
|
|
567
|
+
<td class="name"><code>url</code></td>
|
|
534
568
|
|
|
535
569
|
|
|
536
570
|
<td class="type">
|
|
537
571
|
|
|
538
572
|
|
|
539
|
-
<span class="param-type">
|
|
573
|
+
<span class="param-type">
|
|
574
|
+
|
|
575
|
+
String
|
|
576
|
+
|
|
577
|
+
</span>
|
|
540
578
|
|
|
541
579
|
|
|
542
580
|
|
|
@@ -555,13 +593,17 @@
|
|
|
555
593
|
|
|
556
594
|
<tr class="deep-level-0">
|
|
557
595
|
|
|
558
|
-
<td class="name"
|
|
596
|
+
<td class="name"><code>options</code></td>
|
|
559
597
|
|
|
560
598
|
|
|
561
599
|
<td class="type">
|
|
562
600
|
|
|
563
601
|
|
|
564
|
-
<span class="param-type">
|
|
602
|
+
<span class="param-type">
|
|
603
|
+
|
|
604
|
+
Object
|
|
605
|
+
|
|
606
|
+
</span>
|
|
565
607
|
|
|
566
608
|
|
|
567
609
|
|
|
@@ -648,7 +690,11 @@
|
|
|
648
690
|
<div class='column is-5 has-text-left'>
|
|
649
691
|
<label>类型: </label>
|
|
650
692
|
|
|
651
|
-
<span class="param-type"
|
|
693
|
+
<span class="param-type">
|
|
694
|
+
|
|
695
|
+
<a link="ArcGISTileServerImageryProvider.html" onclick="getTypeHTML(event)" class="mapgis-link-name" title="ArcGISTileServerImageryProvider" ArcGISTileServerImageryProvider.html>ArcGISTileServerImageryProvider</a>
|
|
696
|
+
|
|
697
|
+
</span>
|
|
652
698
|
|
|
653
699
|
|
|
654
700
|
|