@mapgis/webclient-cesium-plugin 17.0.7 → 17.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.
@@ -0,0 +1,866 @@
1
+ <header id="page-title" class="page-title">
2
+
3
+ <span class="page-title-main">类名</span>
4
+ <span class="page-title-sub">ArcGISVectorTileImageryProvider</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="ArcGISVectorTileImageryProvider">
26
+ <a class="href-link" href="#ArcGISVectorTileImageryProvider">#</a>
27
+
28
+ <span class="code-name" id="ArcGISVectorTileImageryProvider" style="font-size:30px">
29
+
30
+ new ArcGISVectorTileImageryProvider<span class="signature">(url, options)</span>
31
+
32
+ </span>
33
+ </h4>
34
+
35
+
36
+
37
+ <div class="description">
38
+ <p>通过ArcGIS矢量瓦片服务的url获取VectorTileImageryProvider对象</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
+ <th style="min-width: 100px;">默认值</th>
64
+
65
+
66
+ <th class="last">描述</th>
67
+ </tr>
68
+ </thead>
69
+
70
+ <tbody>
71
+
72
+
73
+
74
+ <tr class="deep-level-0">
75
+
76
+ <td class="name"><code>url</code></td>
77
+
78
+
79
+ <td class="type">
80
+
81
+
82
+ <span class="param-type">
83
+
84
+ String
85
+
86
+ </span>
87
+
88
+
89
+
90
+
91
+ </td>
92
+
93
+
94
+ <td class="default">
95
+
96
+ </td>
97
+
98
+
99
+ <td class="description last"><p>服务的基地址</p></td>
100
+ </tr>
101
+
102
+
103
+
104
+
105
+
106
+
107
+ <tr class="deep-level-0">
108
+
109
+ <td class="name"><code>options</code></td>
110
+
111
+
112
+ <td class="type">
113
+
114
+
115
+ <span class="param-type">
116
+
117
+ Object
118
+
119
+ </span>
120
+
121
+
122
+
123
+
124
+ </td>
125
+
126
+
127
+ <td class="default">
128
+
129
+ </td>
130
+
131
+
132
+ <td class="description last"><p>实例化对象时提供的额外配置参数,若该对象中包含构造参数则会覆盖对应的构造参数</p></td>
133
+ </tr>
134
+
135
+
136
+
137
+
138
+ <tr class="deep-level-1">
139
+
140
+ <td class="name"><code>style</code></td>
141
+
142
+
143
+ <td class="type">
144
+
145
+
146
+ <span class="param-type">
147
+
148
+ Object
149
+
150
+ </span>
151
+ |
152
+
153
+ <span class="param-type">
154
+
155
+ String
156
+
157
+ </span>
158
+
159
+
160
+
161
+
162
+ </td>
163
+
164
+
165
+ <td class="default">
166
+
167
+ </td>
168
+
169
+
170
+ <td class="description last"><p>矢量瓦片样式,必填;也可以穿服务基地址,当设置为基地址时,格式为http(https)://{ip}:{port}/{path}/{z}/{x}/{y}.pbf</p></td>
171
+ </tr>
172
+
173
+
174
+
175
+
176
+ <tr class="deep-level-1">
177
+
178
+ <td class="name"><code>scene</code></td>
179
+
180
+
181
+ <td class="type">
182
+
183
+
184
+ <span class="param-type">
185
+
186
+ Cseium.Scene
187
+
188
+ </span>
189
+
190
+
191
+
192
+
193
+ </td>
194
+
195
+
196
+ <td class="default">
197
+
198
+ </td>
199
+
200
+
201
+ <td class="description last"><p>Cesium的场景对象,必填</p></td>
202
+ </tr>
203
+
204
+
205
+
206
+
207
+ <tr class="deep-level-1">
208
+
209
+ <td class="name"><code>tilingScheme</code></td>
210
+
211
+
212
+ <td class="type">
213
+
214
+
215
+ <span class="param-type">
216
+
217
+ Object
218
+
219
+ </span>
220
+
221
+
222
+
223
+
224
+ </td>
225
+
226
+
227
+ <td class="default">
228
+
229
+ new Cesium.WebMercatorTilingScheme()
230
+
231
+ </td>
232
+
233
+
234
+ <td class="description last"><p>矢量瓦片服务的平铺方案,必填</p></td>
235
+ </tr>
236
+
237
+
238
+
239
+
240
+ <tr class="deep-level-1">
241
+
242
+ <td class="name"><code>show</code></td>
243
+
244
+
245
+ <td class="type">
246
+
247
+
248
+ <span class="param-type">
249
+
250
+ Boolean
251
+
252
+ </span>
253
+
254
+
255
+
256
+
257
+ </td>
258
+
259
+
260
+ <td class="default">
261
+
262
+ true
263
+
264
+ </td>
265
+
266
+
267
+ <td class="description last"><p>是否显示图层</p></td>
268
+ </tr>
269
+
270
+
271
+
272
+
273
+ <tr class="deep-level-1">
274
+
275
+ <td class="name"><code>defaultAlpha</code></td>
276
+
277
+
278
+ <td class="type">
279
+
280
+
281
+ <span class="param-type">
282
+
283
+ Number
284
+
285
+ </span>
286
+
287
+
288
+
289
+
290
+ </td>
291
+
292
+
293
+ <td class="default">
294
+
295
+ 1.0
296
+
297
+ </td>
298
+
299
+
300
+ <td class="description last"><p>图层初始化时的透明度,0到1之间的值</p></td>
301
+ </tr>
302
+
303
+
304
+
305
+
306
+ <tr class="deep-level-1">
307
+
308
+ <td class="name"><code>tileWidth</code></td>
309
+
310
+
311
+ <td class="type">
312
+
313
+
314
+ <span class="param-type">
315
+
316
+ Number
317
+
318
+ </span>
319
+
320
+
321
+
322
+
323
+ </td>
324
+
325
+
326
+ <td class="default">
327
+
328
+ 512
329
+
330
+ </td>
331
+
332
+
333
+ <td class="description last"><p>瓦片宽度</p></td>
334
+ </tr>
335
+
336
+
337
+
338
+
339
+ <tr class="deep-level-1">
340
+
341
+ <td class="name"><code>tileHeight</code></td>
342
+
343
+
344
+ <td class="type">
345
+
346
+
347
+ <span class="param-type">
348
+
349
+ Number
350
+
351
+ </span>
352
+
353
+
354
+
355
+
356
+ </td>
357
+
358
+
359
+ <td class="default">
360
+
361
+ 512
362
+
363
+ </td>
364
+
365
+
366
+ <td class="description last"><p>瓦片高度</p></td>
367
+ </tr>
368
+
369
+
370
+
371
+
372
+ <tr class="deep-level-1">
373
+
374
+ <td class="name"><code>rectangle</code></td>
375
+
376
+
377
+ <td class="type">
378
+
379
+
380
+ <span class="param-type">
381
+
382
+ Cseium.Rectangle
383
+
384
+ </span>
385
+
386
+
387
+
388
+
389
+ </td>
390
+
391
+
392
+ <td class="default">
393
+
394
+ </td>
395
+
396
+
397
+ <td class="description last"><p>地图加载范围,若不设置,则从tilingScheme中获取</p></td>
398
+ </tr>
399
+
400
+
401
+
402
+
403
+ <tr class="deep-level-1">
404
+
405
+ <td class="name"><code>minimumLevel</code></td>
406
+
407
+
408
+ <td class="type">
409
+
410
+
411
+ <span class="param-type">
412
+
413
+ Number
414
+
415
+ </span>
416
+
417
+
418
+
419
+
420
+ </td>
421
+
422
+
423
+ <td class="default">
424
+
425
+ 0
426
+
427
+ </td>
428
+
429
+
430
+ <td class="description last"><p>矢量瓦片的最小显示级别</p></td>
431
+ </tr>
432
+
433
+
434
+
435
+
436
+ <tr class="deep-level-1">
437
+
438
+ <td class="name"><code>maximumLevel</code></td>
439
+
440
+
441
+ <td class="type">
442
+
443
+
444
+ <span class="param-type">
445
+
446
+ Number
447
+
448
+ </span>
449
+
450
+
451
+
452
+
453
+ </td>
454
+
455
+
456
+ <td class="default">
457
+
458
+ 20
459
+
460
+ </td>
461
+
462
+
463
+ <td class="description last"><p>矢量瓦片的最大显示级别</p></td>
464
+ </tr>
465
+
466
+
467
+
468
+
469
+ <tr class="deep-level-1">
470
+
471
+ <td class="name"><code>isStretchImage</code></td>
472
+
473
+
474
+ <td class="type">
475
+
476
+
477
+ <span class="param-type">
478
+
479
+ Boolean
480
+
481
+ </span>
482
+ |
483
+
484
+ <span class="param-type">
485
+
486
+ undefined
487
+
488
+ </span>
489
+
490
+
491
+
492
+
493
+ </td>
494
+
495
+
496
+ <td class="default">
497
+
498
+ false
499
+
500
+ </td>
501
+
502
+
503
+ <td class="description last"><p>超过最大最小层级范围图像是否进行图像的拉伸。此值未定义或者设置为true时,如果图像level小于minimumLevel或者大于maximumLevel,图像会进行拉伸。反之,如果图像level小于minimumLevel或者大于maximumLevel,不会再请求图像以及拉伸图像</p></td>
504
+ </tr>
505
+
506
+
507
+
508
+
509
+ <tr class="deep-level-1">
510
+
511
+ <td class="name"><code>tokenKey</code></td>
512
+
513
+
514
+ <td class="type">
515
+
516
+
517
+ <span class="param-type">
518
+
519
+ String
520
+
521
+ </span>
522
+
523
+
524
+
525
+
526
+ </td>
527
+
528
+
529
+ <td class="default">
530
+
531
+ 'token'
532
+
533
+ </td>
534
+
535
+
536
+ <td class="description last"><p>token名</p></td>
537
+ </tr>
538
+
539
+
540
+
541
+
542
+ <tr class="deep-level-1">
543
+
544
+ <td class="name"><code>tokenValue</code></td>
545
+
546
+
547
+ <td class="type">
548
+
549
+
550
+ <span class="param-type">
551
+
552
+ String
553
+
554
+ </span>
555
+
556
+
557
+
558
+
559
+ </td>
560
+
561
+
562
+ <td class="default">
563
+
564
+ null
565
+
566
+ </td>
567
+
568
+
569
+ <td class="description last"><p>token值,只有当tokenValue存在时,才会绑定token</p></td>
570
+ </tr>
571
+
572
+
573
+
574
+
575
+ <tr class="deep-level-1">
576
+
577
+ <td class="name"><code>pixelRatio</code></td>
578
+
579
+
580
+ <td class="type">
581
+
582
+
583
+ <span class="param-type">
584
+
585
+ Number
586
+
587
+ </span>
588
+
589
+
590
+
591
+
592
+ </td>
593
+
594
+
595
+ <td class="default">
596
+
597
+ 1
598
+
599
+ </td>
600
+
601
+
602
+ <td class="description last"><p>像素缩放因子,既canvas中一个像素对应屏幕像素的大小</p></td>
603
+ </tr>
604
+
605
+
606
+
607
+
608
+ <tr class="deep-level-1">
609
+
610
+ <td class="name"><code>transform</code></td>
611
+
612
+
613
+ <td class="type">
614
+
615
+
616
+ <span class="param-type">
617
+
618
+ Array.&lt;Number>
619
+
620
+ </span>
621
+
622
+
623
+
624
+
625
+ </td>
626
+
627
+
628
+ <td class="default">
629
+
630
+ [0.125, 0, 0, 0.125, 0, 0]
631
+
632
+ </td>
633
+
634
+
635
+ <td class="description last"><p>矢量瓦片中绘制的几何内容的缩放矩阵,默认是[0.125, 0, 0, 0.125, 0, 0],意味着将矢量瓦片里的内容缩放至1/8,并填充到canvas中</p></td>
636
+ </tr>
637
+
638
+
639
+
640
+
641
+ <tr class="deep-level-1">
642
+
643
+ <td class="name"><code>sublayerLabelingInfos</code></td>
644
+
645
+
646
+ <td class="type">
647
+
648
+
649
+ <span class="param-type">
650
+
651
+ Object
652
+
653
+ </span>
654
+
655
+
656
+
657
+
658
+ </td>
659
+
660
+
661
+ <td class="default">
662
+
663
+ </td>
664
+
665
+
666
+ <td class="description last"><p>矢量瓦片注记参数</p></td>
667
+ </tr>
668
+
669
+
670
+
671
+
672
+ <tr class="deep-level-1">
673
+
674
+ <td class="name"><code>labelsRenderMode</code></td>
675
+
676
+
677
+ <td class="type">
678
+
679
+
680
+ <span class="param-type">
681
+
682
+ String
683
+
684
+ </span>
685
+
686
+
687
+
688
+
689
+ </td>
690
+
691
+
692
+ <td class="default">
693
+
694
+ </td>
695
+
696
+
697
+ <td class="description last"><p>指定矢量瓦片注记的渲染模式,仅在三维上有效。on-screen表示使用三维接口实时渲染注记;off-screen表示通过先将注记渲染到图片上,再通过三维接口渲染到屏幕。</p></td>
698
+ </tr>
699
+
700
+
701
+
702
+
703
+ <tr class="deep-level-1">
704
+
705
+ <td class="name"><code>readyPromise</code></td>
706
+
707
+
708
+ <td class="type">
709
+
710
+
711
+ <span class="param-type">
712
+
713
+ Promise
714
+
715
+ </span>
716
+
717
+
718
+
719
+
720
+ </td>
721
+
722
+
723
+ <td class="default">
724
+
725
+ </td>
726
+
727
+
728
+ <td class="description last"><p>图层加载成功后的回调函数</p></td>
729
+ </tr>
730
+
731
+
732
+
733
+
734
+
735
+
736
+
737
+ </tbody>
738
+ </table>
739
+ </div>
740
+
741
+
742
+
743
+
744
+
745
+
746
+ <dl class="details">
747
+
748
+
749
+
750
+
751
+
752
+
753
+
754
+
755
+
756
+
757
+
758
+
759
+
760
+
761
+
762
+
763
+
764
+
765
+
766
+
767
+
768
+
769
+
770
+
771
+
772
+
773
+
774
+
775
+
776
+
777
+
778
+ </dl>
779
+
780
+
781
+
782
+
783
+
784
+
785
+
786
+
787
+
788
+
789
+
790
+
791
+
792
+
793
+
794
+
795
+
796
+
797
+ <div class='columns method-parameter'>
798
+ <div class="column is-2"><label>返回值</label></div>
799
+ <div class="column is-10">
800
+
801
+
802
+
803
+ <div class="columns">
804
+
805
+
806
+ <div class='column is-5 has-text-left'>
807
+ <label>类型: </label>
808
+
809
+ <span class="param-type">
810
+
811
+ <a link="ArcGISVectorTileImageryProvider.html" onclick="getTypeHTML(event)" class="mapgis-link-name" title="ArcGISVectorTileImageryProvider" ArcGISVectorTileImageryProvider.html>ArcGISVectorTileImageryProvider</a>
812
+
813
+ </span>
814
+
815
+
816
+
817
+ </div>
818
+
819
+ </div>
820
+
821
+
822
+ </div>
823
+ </div>
824
+
825
+
826
+
827
+
828
+
829
+
830
+ <h5>示例</h5>
831
+
832
+
833
+ <pre class="prettyprint"><code>const url = 'https://basemaps.arcgis.com/arcgis/rest/services/World_Basemap_v2/VectorTileServer'
834
  const imageryProvider = await ArcGISVectorTileImageryProvider.fromUrl(url)
1
835
  viewer.imageryLayers.addImageryProvider(imageryProvider)
836
+
837
+
838
+
839
+
840
+ </div>
841
+ </div>
842
+ </div>
843
+
844
+
845
+ </div>
846
+
847
+
848
+
849
+
850
+
851
+
852
+
853
+
854
+
855
+
856
+
857
+
858
+
859
+
860
+
861
+
862
+
863
+
864
+
865
+
866
+ </article>
867
+
868
+ </section>