@mapgis/webclient-leaflet-plugin 17.2.0 → 17.2.2

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.
Files changed (36) hide show
  1. package/README.md +22 -4
  2. package/dist/es5/webclient-common.min.js +5 -5
  3. package/dist/es5/webclient-leaflet-plugin.min.js +6 -6
  4. package/dist/webclient-leaflet-plugin-es6.min.js +6 -6
  5. package/documention/ArcGISMapImageLayer.html +820 -0
  6. package/documention/ArcGISTileLayer.html +498 -0
  7. package/documention/EchartsLayer.html +261 -0
  8. package/documention/FeatureLayer.html +212 -0
  9. package/documention/FeatureLayerUtil.html +288 -0
  10. package/documention/IGSMapImageLayer.html +948 -0
  11. package/documention/IGSTileLayer.html +562 -0
  12. package/documention/MapLayer.html +330 -0
  13. package/documention/MapVLayer.html +320 -0
  14. package/documention/MapViewLeaflet.html +7 -7
  15. package/documention/Popup.html +4 -2
  16. package/documention/Screenshot.html +5 -3
  17. package/documention/SketchEditorLeaflet.html +76 -46
  18. package/documention/TileLayer.html +279 -0
  19. package/documention/TileLayerWMS.html +222 -0
  20. package/documention/VectorTileLayer.html +529 -0
  21. package/documention/WMSLayerView.html +689 -0
  22. package/documention/WebMapServiceLayer.html +723 -0
  23. package/documention/WebMapTileServiceLayer.html +754 -0
  24. package/documention/WebTileLayer.html +663 -0
  25. package/documention/Zondy.ThemeLayer.GeoFeatureThemeLayer.html +22 -22
  26. package/documention/Zondy.ThemeLayer.GraphThemeLayer.html +30 -30
  27. package/documention/Zondy.ThemeLayer.RandomThemeLayer.html +34 -34
  28. package/documention/Zondy.ThemeLayer.ThemeLayer.html +3 -3
  29. package/documention/Zondy.ThemeLayer.rangeThemeLayer.html +34 -34
  30. package/documention/Zondy.ThemeLayer.rankSymbolThemeLayer.html +47 -47
  31. package/documention/Zondy.ThemeLayer.simpleThemeLayer.html +33 -33
  32. package/documention/Zondy.ThemeLayer.uniqueThemeLayer.html +30 -30
  33. package/documention/Zondy.Widget.html +5 -5
  34. package/documention/global.html +454 -0
  35. package/documention/index.html +3 -3
  36. package/package.json +3 -2
@@ -0,0 +1,948 @@
1
+ <header id="page-title" class="page-title">
2
+
3
+ <span class="page-title-main">类名</span>
4
+ <span class="page-title-sub">IGSMapImageLayer</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="IGSMapImageLayer">
26
+ <a class="href-link" href="#IGSMapImageLayer">#</a>
27
+
28
+ <span class="code-name" id="IGSMapImageLayer" style="font-size:30px">
29
+
30
+ new IGSMapImageLayer<span class="signature">(url, options)</span>
31
+
32
+ </span>
33
+ </h4>
34
+
35
+
36
+
37
+ <div class="description">
38
+ <p>地图图片图层(Leaflet)</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>layers</code></td>
141
+
142
+
143
+ <td class="type">
144
+
145
+
146
+ <span class="param-type">
147
+
148
+ String
149
+
150
+ </span>
151
+
152
+
153
+
154
+
155
+ </td>
156
+
157
+
158
+ <td class="default">
159
+
160
+ </td>
161
+
162
+
163
+ <td class="description last"><p>要显示的子图层</p></td>
164
+ </tr>
165
+
166
+
167
+
168
+
169
+ <tr class="deep-level-1">
170
+
171
+ <td class="name"><code>id</code></td>
172
+
173
+
174
+ <td class="type">
175
+
176
+
177
+ <span class="param-type">
178
+
179
+ String
180
+
181
+ </span>
182
+
183
+
184
+
185
+
186
+ </td>
187
+
188
+
189
+ <td class="default">
190
+
191
+ </td>
192
+
193
+
194
+ <td class="description last"><p>图层id</p></td>
195
+ </tr>
196
+
197
+
198
+
199
+
200
+ <tr class="deep-level-1">
201
+
202
+ <td class="name"><code>clientId</code></td>
203
+
204
+
205
+ <td class="type">
206
+
207
+
208
+ <span class="param-type">
209
+
210
+ String
211
+
212
+ </span>
213
+
214
+
215
+
216
+
217
+ </td>
218
+
219
+
220
+ <td class="default">
221
+
222
+ </td>
223
+
224
+
225
+ <td class="description last"><p>客户端id,用户的唯一标识;在地图服务中,调用接口时如果修改了地图的状态,包括设置动态投影、设置图层显示隐藏等,为了提升并发性能,服务端会根据clientId来生成临时地图,最佳做法是一个浏览器生成一个固定的唯一值;建议普通用户不要传该参数,webclient会根据当前浏览器生成一个固定的唯一值</p></td>
226
+ </tr>
227
+
228
+
229
+
230
+
231
+ <tr class="deep-level-1">
232
+
233
+ <td class="name"><code>imageWidth</code></td>
234
+
235
+
236
+ <td class="type">
237
+
238
+
239
+ <span class="param-type">
240
+
241
+ Number
242
+
243
+ </span>
244
+
245
+
246
+
247
+
248
+ </td>
249
+
250
+
251
+ <td class="default">
252
+
253
+ 256
254
+
255
+ </td>
256
+
257
+
258
+ <td class="description last"><p>瓦片宽度,仅当renderMode为'tile'时生效</p></td>
259
+ </tr>
260
+
261
+
262
+
263
+
264
+ <tr class="deep-level-1">
265
+
266
+ <td class="name"><code>imageHeight</code></td>
267
+
268
+
269
+ <td class="type">
270
+
271
+
272
+ <span class="param-type">
273
+
274
+ Number
275
+
276
+ </span>
277
+
278
+
279
+
280
+
281
+ </td>
282
+
283
+
284
+ <td class="default">
285
+
286
+ 256
287
+
288
+ </td>
289
+
290
+
291
+ <td class="description last"><p>瓦片高度,仅当renderMode为'tile'时生效</p></td>
292
+ </tr>
293
+
294
+
295
+
296
+
297
+ <tr class="deep-level-1">
298
+
299
+ <td class="name"><code>imageFormat</code></td>
300
+
301
+
302
+ <td class="type">
303
+
304
+
305
+ <span class="param-type">
306
+
307
+ String
308
+
309
+ </span>
310
+
311
+
312
+
313
+
314
+ </td>
315
+
316
+
317
+ <td class="default">
318
+
319
+ 'image/jpeg'
320
+
321
+ </td>
322
+
323
+
324
+ <td class="description last"><p>瓦片格式</p></td>
325
+ </tr>
326
+
327
+
328
+
329
+
330
+ <tr class="deep-level-1">
331
+
332
+ <td class="name"><code>opacity</code></td>
333
+
334
+
335
+ <td class="type">
336
+
337
+
338
+ <span class="param-type">
339
+
340
+ Number
341
+
342
+ </span>
343
+
344
+
345
+
346
+
347
+ </td>
348
+
349
+
350
+ <td class="default">
351
+
352
+ 1
353
+
354
+ </td>
355
+
356
+
357
+ <td class="description last"><p>图层透明度</p></td>
358
+ </tr>
359
+
360
+
361
+
362
+
363
+ <tr class="deep-level-1">
364
+
365
+ <td class="name"><code>visible</code></td>
366
+
367
+
368
+ <td class="type">
369
+
370
+
371
+ <span class="param-type">
372
+
373
+ Boolean
374
+
375
+ </span>
376
+
377
+
378
+
379
+
380
+ </td>
381
+
382
+
383
+ <td class="default">
384
+
385
+ true
386
+
387
+ </td>
388
+
389
+
390
+ <td class="description last"><p>图层显示或隐藏</p></td>
391
+ </tr>
392
+
393
+
394
+
395
+
396
+ <tr class="deep-level-1">
397
+
398
+ <td class="name"><code>imageTransparent</code></td>
399
+
400
+
401
+ <td class="type">
402
+
403
+
404
+ <span class="param-type">
405
+
406
+ Boolean
407
+
408
+ </span>
409
+
410
+
411
+
412
+
413
+ </td>
414
+
415
+
416
+ <td class="default">
417
+
418
+ true
419
+
420
+ </td>
421
+
422
+
423
+ <td class="description last"><p>图层背景是否可以透明</p></td>
424
+ </tr>
425
+
426
+
427
+
428
+
429
+ <tr class="deep-level-1">
430
+
431
+ <td class="name"><code>bounds</code></td>
432
+
433
+
434
+ <td class="type">
435
+
436
+
437
+ <span class="param-type">
438
+
439
+ L.latLngBounds
440
+
441
+ </span>
442
+
443
+
444
+
445
+
446
+ </td>
447
+
448
+
449
+ <td class="default">
450
+
451
+ </td>
452
+
453
+
454
+ <td class="description last"><p>地图显示范围</p></td>
455
+ </tr>
456
+
457
+
458
+
459
+
460
+ <tr class="deep-level-1">
461
+
462
+ <td class="name"><code>igsVersion</code></td>
463
+
464
+
465
+ <td class="type">
466
+
467
+
468
+ <span class="param-type">
469
+
470
+ String
471
+
472
+ </span>
473
+
474
+
475
+
476
+
477
+ </td>
478
+
479
+
480
+ <td class="default">
481
+
482
+ </td>
483
+
484
+
485
+ <td class="description last"><p>igs版本号</p></td>
486
+ </tr>
487
+
488
+
489
+
490
+
491
+ <tr class="deep-level-1">
492
+
493
+ <td class="name"><code>tokenKey</code></td>
494
+
495
+
496
+ <td class="type">
497
+
498
+
499
+ <span class="param-type">
500
+
501
+ String
502
+
503
+ </span>
504
+
505
+
506
+
507
+
508
+ </td>
509
+
510
+
511
+ <td class="default">
512
+
513
+ </td>
514
+
515
+
516
+ <td class="description last"><p>token名</p></td>
517
+ </tr>
518
+
519
+
520
+
521
+
522
+ <tr class="deep-level-1">
523
+
524
+ <td class="name"><code>tokenValue</code></td>
525
+
526
+
527
+ <td class="type">
528
+
529
+
530
+ <span class="param-type">
531
+
532
+ String
533
+
534
+ </span>
535
+
536
+
537
+
538
+
539
+ </td>
540
+
541
+
542
+ <td class="default">
543
+
544
+ </td>
545
+
546
+
547
+ <td class="description last"><p>token值</p></td>
548
+ </tr>
549
+
550
+
551
+
552
+
553
+ <tr class="deep-level-1">
554
+
555
+ <td class="name"><code>tokenAttachType</code></td>
556
+
557
+
558
+ <td class="type">
559
+
560
+
561
+ <span class="param-type">
562
+
563
+ Boolean
564
+
565
+ </span>
566
+
567
+
568
+
569
+
570
+ </td>
571
+
572
+
573
+ <td class="default">
574
+
575
+ false
576
+
577
+ </td>
578
+
579
+
580
+ <td class="description last"><p>当请求类型为POST时,是否将token设置在请求体中</p></td>
581
+ </tr>
582
+
583
+
584
+
585
+
586
+ <tr class="deep-level-1">
587
+
588
+ <td class="name"><code>filters</code></td>
589
+
590
+
591
+ <td class="type">
592
+
593
+
594
+ <span class="param-type">
595
+
596
+ String
597
+
598
+ </span>
599
+
600
+
601
+
602
+
603
+ </td>
604
+
605
+
606
+ <td class="default">
607
+
608
+ </td>
609
+
610
+
611
+ <td class="description last"><p>子图层过滤条件</p></td>
612
+ </tr>
613
+
614
+
615
+
616
+
617
+ <tr class="deep-level-1">
618
+
619
+ <td class="name"><code>httpMethod</code></td>
620
+
621
+
622
+ <td class="type">
623
+
624
+
625
+ <span class="param-type">
626
+
627
+ FetchMethod
628
+
629
+ </span>
630
+
631
+
632
+
633
+
634
+ </td>
635
+
636
+
637
+ <td class="default">
638
+
639
+ FetchMethod.get
640
+
641
+ </td>
642
+
643
+
644
+ <td class="description last"><p>数据请求方式</p></td>
645
+ </tr>
646
+
647
+
648
+
649
+
650
+ <tr class="deep-level-1">
651
+
652
+ <td class="name"><code>clippingArea</code></td>
653
+
654
+
655
+ <td class="type">
656
+
657
+
658
+ <span class="param-type">
659
+
660
+ Object
661
+
662
+ </span>
663
+
664
+
665
+
666
+
667
+ </td>
668
+
669
+
670
+ <td class="default">
671
+
672
+ </td>
673
+
674
+
675
+ <td class="description last"><p>图层裁剪对象</p></td>
676
+ </tr>
677
+
678
+
679
+
680
+
681
+ <tr class="deep-level-1">
682
+
683
+ <td class="name"><code>mapServer</code></td>
684
+
685
+
686
+ <td class="type">
687
+
688
+
689
+ <span class="param-type">
690
+
691
+ MapServer
692
+
693
+ </span>
694
+
695
+
696
+
697
+
698
+ </td>
699
+
700
+
701
+ <td class="default">
702
+
703
+ </td>
704
+
705
+
706
+ <td class="description last"><p>服务库对象</p></td>
707
+ </tr>
708
+
709
+
710
+
711
+
712
+ <tr class="deep-level-1">
713
+
714
+ <td class="name"><code>projectionSrs</code></td>
715
+
716
+
717
+ <td class="type">
718
+
719
+
720
+ <span class="param-type">
721
+
722
+ Boolean
723
+
724
+ </span>
725
+
726
+
727
+
728
+
729
+ </td>
730
+
731
+
732
+ <td class="default">
733
+
734
+ false
735
+
736
+ </td>
737
+
738
+
739
+ <td class="description last"><p>是否开启IGS2.0动态投影</p></td>
740
+ </tr>
741
+
742
+
743
+
744
+
745
+ <tr class="deep-level-1">
746
+
747
+ <td class="name"><code>isAntialiasing</code></td>
748
+
749
+
750
+ <td class="type">
751
+
752
+
753
+ <span class="param-type">
754
+
755
+ Boolean
756
+
757
+ </span>
758
+
759
+
760
+
761
+
762
+ </td>
763
+
764
+
765
+ <td class="default">
766
+
767
+ false
768
+
769
+ </td>
770
+
771
+
772
+ <td class="description last"><p>返回的图片时,是否开启服务端抗锯齿功能;启用抗锯齿功能后,显示效果会更清晰,但会导致出图速度变慢,true表示开启抗锯齿,false表示关闭抗锯齿,如果没有设置,则默认应用地图文档(MapX)上的设置参数</p></td>
773
+ </tr>
774
+
775
+
776
+
777
+
778
+ <tr class="deep-level-1">
779
+
780
+ <td class="name"><code>renderMode</code></td>
781
+
782
+
783
+ <td class="type">
784
+
785
+
786
+ <span class="param-type">
787
+
788
+ String
789
+
790
+ </span>
791
+
792
+
793
+
794
+
795
+ </td>
796
+
797
+
798
+ <td class="default">
799
+
800
+ 'tile'
801
+
802
+ </td>
803
+
804
+
805
+ <td class="description last"><p>影像的展现形式。可选'tile' 、 'image'。默认为'tile',加载影像时以瓦片的方式平铺。当选项为'image'时,加载影像会请求一张覆盖当前屏幕的图像。</p></td>
806
+ </tr>
807
+
808
+
809
+
810
+
811
+
812
+
813
+
814
+ </tbody>
815
+ </table>
816
+ </div>
817
+
818
+
819
+
820
+
821
+
822
+
823
+ <dl class="details">
824
+
825
+
826
+
827
+
828
+
829
+
830
+
831
+
832
+
833
+
834
+
835
+
836
+
837
+
838
+
839
+
840
+
841
+
842
+
843
+
844
+
845
+
846
+
847
+
848
+
849
+
850
+
851
+
852
+
853
+
854
+
855
+ </dl>
856
+
857
+
858
+
859
+
860
+
861
+
862
+
863
+
864
+
865
+
866
+
867
+
868
+
869
+
870
+
871
+
872
+
873
+
874
+
875
+
876
+
877
+
878
+
879
+ <h5>示例</h5>
880
+
881
+ <p class="code-caption"><h7 id='addLayer'>混合开发模式</h7></p>
882
+
883
+
884
+ <pre class="prettyprint"><code>// ES5引入方式
885
+ const { IGSMapImageLayer } = zondy.Layer
886
+ const { initializeCRS, initializeOptions } = zondy.leaflet
887
+ // ES6引入方式
888
+ import { IGSMapImageLayer } from "@mapgis/webclient-common"
889
+ import "@mapgis/webclient-leaflet-plugin"
890
+ const { initializeCRS, initializeOptions } = zondy.leaflet
891
+
892
+ // 构造一个IGSMapImageLayer图层对象
893
+ const layer = new IGSMapImageLayer({
894
+ // 服务基地址
895
+ url: "http://{ip}:{port}/igs/rest/services/{服务名}/MapServer"
896
+ });
897
+ // 加载图层元数据
898
+ layer.load().then(function () {
899
+ // 构造地图视图的初始化参数
900
+ const crs = initializeCRS(layer)
901
+ const mapViewOptions = {
902
+ // 地图视图参考系
903
+ crs: crs,
904
+ // 初始化中心点
905
+ center: [31.147781205532336,112.21905099757561],
906
+ // 初始化级数
907
+ zoom: 2
908
+ }
909
+ // 构造Leaflet地图视图对象
910
+ const map = L.map('地图视图容器ID', mapViewOptions)
911
+ // 构造图层的初始化参数
912
+ const layerOptions = initializeOptions(layer)
913
+ // 添加图层到地图视图中
914
+ new zondy.leaflet.IGSMapImageLayer(layer.url, layerOptions).addTo(map)
915
+ })</code></pre>
916
+
917
+
918
+
919
+
920
+ </div>
921
+ </div>
922
+ </div>
923
+
924
+
925
+ </div>
926
+
927
+
928
+
929
+
930
+
931
+
932
+
933
+
934
+
935
+
936
+
937
+
938
+
939
+
940
+
941
+
942
+
943
+
944
+
945
+
946
+ </article>
947
+
948
+ </section>