@mapgis/webclient-common 17.2.1 → 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.
@@ -0,0 +1,3356 @@
1
+ <header id="page-title" class="page-title">
2
+
3
+ <span class="page-title-main">类名</span>
4
+ <span class="page-title-sub">ISSceneSubLayer</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="ISSceneSubLayer">
26
+ <a class="href-link" href="#ISSceneSubLayer">#</a>
27
+
28
+ <span class="code-name" id="ISSceneSubLayer" style="font-size:30px">
29
+
30
+ new ISSceneSubLayer<span class="signature">(options)</span>
31
+
32
+ </span>
33
+ </h4>
34
+
35
+
36
+
37
+ <div class="description">
38
+ <p>IS的SceneLayer子图层</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>options</code></td>
77
+
78
+
79
+ <td class="type">
80
+
81
+
82
+ <span class="param-type">
83
+
84
+ Object
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
+ <tr class="deep-level-1">
106
+
107
+ <td class="name"><code>renderer</code></td>
108
+
109
+
110
+ <td class="type">
111
+
112
+
113
+ <span class="param-type">
114
+
115
+ <a link="BaseRenderer.html" onclick="getTypeHTML(event)" class="mapgis-link-name" title="BaseRenderer" BaseRenderer.html>BaseRenderer</a>
116
+
117
+ </span>
118
+
119
+
120
+
121
+
122
+ </td>
123
+
124
+
125
+ <td class="default">
126
+
127
+ </td>
128
+
129
+
130
+ <td class="description last"><p>渲染器</p></td>
131
+ </tr>
132
+
133
+
134
+
135
+
136
+ <tr class="deep-level-1">
137
+
138
+ <td class="name"><code>labelingInfo</code></td>
139
+
140
+
141
+ <td class="type">
142
+
143
+
144
+ <span class="param-type">
145
+
146
+ Array.&lt;<a onclick="getTypeHTML(event)" link="LabelClass.html">LabelClass</a>>
147
+
148
+ </span>
149
+
150
+
151
+
152
+
153
+ </td>
154
+
155
+
156
+ <td class="default">
157
+
158
+ []
159
+
160
+ </td>
161
+
162
+
163
+ <td class="description last"><p>注记图层样式,仅当此图层类型为注记图层时生效</p></td>
164
+ </tr>
165
+
166
+
167
+
168
+
169
+
170
+
171
+
172
+ </tbody>
173
+ </table>
174
+ </div>
175
+
176
+
177
+
178
+
179
+
180
+
181
+ <dl class="details">
182
+
183
+
184
+
185
+
186
+
187
+
188
+
189
+
190
+
191
+
192
+
193
+
194
+
195
+
196
+
197
+
198
+
199
+
200
+
201
+
202
+
203
+
204
+
205
+
206
+
207
+
208
+
209
+
210
+
211
+
212
+
213
+ </dl>
214
+
215
+
216
+
217
+
218
+
219
+
220
+
221
+
222
+
223
+
224
+
225
+
226
+
227
+
228
+
229
+
230
+
231
+
232
+
233
+
234
+
235
+
236
+
237
+
238
+ </div>
239
+ </div>
240
+ </div>
241
+
242
+
243
+ </div>
244
+
245
+
246
+ <h3 class="subsection-title">继承关系</h3>
247
+
248
+
249
+
250
+
251
+ <ul>
252
+ <li><a link="SubLayer.html" onclick="getTypeHTML(event)" class="mapgis-link-name" title="SubLayer" SubLayer.html>SubLayer</a></li>
253
+ </ul>
254
+
255
+
256
+
257
+
258
+
259
+
260
+
261
+
262
+
263
+
264
+
265
+
266
+
267
+
268
+
269
+ <div class='vertical-section'>
270
+ <h3 id='member'>成员变量</h3>
271
+ <h4 style="margin-top: 20px;margin-bottom: 20px;">成员变量概述</h4>
272
+ <div class="table-container">
273
+ <table class="params table">
274
+ <thead>
275
+ <tr>
276
+ <th>名称</th>
277
+ <th>类型</th>
278
+ <th>描述</th>
279
+ </tr>
280
+ </thead>
281
+ <tbody>
282
+
283
+ <tr class="deep-level-0">
284
+ <td class="name"><code><a href="#beginLevel">beginLevel</a></code></td>
285
+ <td class="name">
286
+ <code>
287
+
288
+ <span class="param-type">
289
+
290
+ Number
291
+
292
+ </span>
293
+
294
+
295
+
296
+ </code>
297
+ </td>
298
+ <td class="name"><code><p>开始级别</p></code></td>
299
+ </tr>
300
+
301
+ <tr class="deep-level-0">
302
+ <td class="name"><code><a href="#endLevel">endLevel</a></code></td>
303
+ <td class="name">
304
+ <code>
305
+
306
+ <span class="param-type">
307
+
308
+ Number
309
+
310
+ </span>
311
+
312
+
313
+
314
+ </code>
315
+ </td>
316
+ <td class="name"><code><p>结束级别</p></code></td>
317
+ </tr>
318
+
319
+ <tr class="deep-level-0">
320
+ <td class="name"><code><a href="#extendOptions">extendOptions</a></code></td>
321
+ <td class="name">
322
+ <code>
323
+
324
+ <span class="param-type">
325
+
326
+ Object
327
+
328
+ </span>
329
+
330
+
331
+
332
+ </code>
333
+ </td>
334
+ <td class="name"><code><p>初始化图层的额外参数,可以通过该参数传入引擎原生的构造参数</p></code></td>
335
+ </tr>
336
+
337
+ <tr class="deep-level-0">
338
+ <td class="name"><code><a href="#extendProps">extendProps</a></code></td>
339
+ <td class="name">
340
+ <code>
341
+
342
+ <span class="param-type">
343
+
344
+ Object
345
+
346
+ </span>
347
+
348
+
349
+
350
+ </code>
351
+ </td>
352
+ <td class="name"><code><p>初始化当前图层对象上不支持的属性,二次开发用户希望挂在图层对像上的属性可以存储到该属性中</p></code></td>
353
+ </tr>
354
+
355
+ <tr class="deep-level-0">
356
+ <td class="name"><code><a href="#id">id</a></code></td>
357
+ <td class="name">
358
+ <code>
359
+
360
+ <span class="param-type">
361
+
362
+ String
363
+
364
+ </span>
365
+
366
+
367
+
368
+ </code>
369
+ </td>
370
+ <td class="name"><code><p>子图层的id</p></code></td>
371
+ </tr>
372
+
373
+ <tr class="deep-level-0">
374
+ <td class="name"><code><a href="#labelingInfo">labelingInfo</a></code></td>
375
+ <td class="name">
376
+ <code>
377
+
378
+ <span class="param-type">
379
+
380
+ Array.&lt;<a onclick="getTypeHTML(event)" link="LabelClass.html">LabelClass</a>>
381
+
382
+ </span>
383
+
384
+
385
+
386
+ </code>
387
+ </td>
388
+ <td class="name"><code><p>注记图层样式,仅当此图层类型为注记图层时生效</p></code></td>
389
+ </tr>
390
+
391
+ <tr class="deep-level-0">
392
+ <td class="name"><code><a href="#layer">layer</a></code></td>
393
+ <td class="name">
394
+ <code>
395
+
396
+ <span class="param-type">
397
+
398
+ <a link="Layer.html" onclick="getTypeHTML(event)" class="mapgis-link-name" title="Layer" Layer.html>Layer</a>
399
+
400
+ </span>
401
+
402
+
403
+
404
+ </code>
405
+ </td>
406
+ <td class="name"><code><p>父图层对象</p></code></td>
407
+ </tr>
408
+
409
+ <tr class="deep-level-0">
410
+ <td class="name"><code><a href="#layerIndex">layerIndex</a></code></td>
411
+ <td class="name">
412
+ <code>
413
+
414
+ <span class="param-type">
415
+
416
+ Number
417
+
418
+ </span>
419
+
420
+
421
+
422
+ </code>
423
+ </td>
424
+ <td class="name"><code><p>子图层的索引</p></code></td>
425
+ </tr>
426
+
427
+ <tr class="deep-level-0">
428
+ <td class="name"><code><a href="#maxFrameSize">maxFrameSize</a></code></td>
429
+ <td class="name">
430
+ <code>
431
+
432
+ <span class="param-type">
433
+
434
+ Number
435
+
436
+ </span>
437
+
438
+
439
+
440
+ </code>
441
+ </td>
442
+ <td class="name"><code><p>最大网格大小</p></code></td>
443
+ </tr>
444
+
445
+ <tr class="deep-level-0">
446
+ <td class="name"><code><a href="#opacity">opacity</a></code></td>
447
+ <td class="name">
448
+ <code>
449
+
450
+ <span class="param-type">
451
+
452
+ Number
453
+
454
+ </span>
455
+
456
+
457
+
458
+ </code>
459
+ </td>
460
+ <td class="name"><code><p>子图层透明度</p></code></td>
461
+ </tr>
462
+
463
+ <tr class="deep-level-0">
464
+ <td class="name"><code><a href="#originPoint">originPoint</a></code></td>
465
+ <td class="name">
466
+ <code>
467
+
468
+ <span class="param-type">
469
+
470
+ <a link="Point.html" onclick="getTypeHTML(event)" class="mapgis-link-name" title="Point" Point.html>Point</a>
471
+
472
+ </span>
473
+
474
+
475
+
476
+ </code>
477
+ </td>
478
+ <td class="name"><code><p>网格划分的源点</p></code></td>
479
+ </tr>
480
+
481
+ <tr class="deep-level-0">
482
+ <td class="name"><code><a href="#range">range</a></code></td>
483
+ <td class="name">
484
+ <code>
485
+
486
+ <span class="param-type">
487
+
488
+ <a link="Extent.html" onclick="getTypeHTML(event)" class="mapgis-link-name" title="Extent" Extent.html>Extent</a>
489
+
490
+ </span>
491
+
492
+
493
+
494
+ </code>
495
+ </td>
496
+ <td class="name"><code><p>子图层服范围(二维)</p></code></td>
497
+ </tr>
498
+
499
+ <tr class="deep-level-0">
500
+ <td class="name"><code><a href="#range3D">range3D</a></code></td>
501
+ <td class="name">
502
+ <code>
503
+
504
+ <span class="param-type">
505
+
506
+ <a link="Extent.html" onclick="getTypeHTML(event)" class="mapgis-link-name" title="Extent" Extent.html>Extent</a>
507
+
508
+ </span>
509
+
510
+
511
+
512
+ </code>
513
+ </td>
514
+ <td class="name"><code><p>子图层服范围(三维)</p></code></td>
515
+ </tr>
516
+
517
+ <tr class="deep-level-0">
518
+ <td class="name"><code><a href="#renderType">renderType</a></code></td>
519
+ <td class="name">
520
+ <code>
521
+
522
+ <span class="param-type">
523
+
524
+ String
525
+
526
+ </span>
527
+
528
+
529
+
530
+ </code>
531
+ </td>
532
+ <td class="name"><code><p>子图层渲染类型</p></code></td>
533
+ </tr>
534
+
535
+ <tr class="deep-level-0">
536
+ <td class="name"><code><a href="#spatialReference">spatialReference</a></code></td>
537
+ <td class="name">
538
+ <code>
539
+
540
+ <span class="param-type">
541
+
542
+ <a link="SpatialReference.html" onclick="getTypeHTML(event)" class="mapgis-link-name" title="SpatialReference" SpatialReference.html>SpatialReference</a>
543
+
544
+ </span>
545
+
546
+
547
+
548
+ </code>
549
+ </td>
550
+ <td class="name"><code><p>子图层空间参考系</p></code></td>
551
+ </tr>
552
+
553
+ <tr class="deep-level-0">
554
+ <td class="name"><code><a href="#sublayers">sublayers</a></code></td>
555
+ <td class="name">
556
+ <code>
557
+
558
+ <span class="param-type">
559
+
560
+ Array
561
+
562
+ </span>
563
+
564
+
565
+
566
+ </code>
567
+ </td>
568
+ <td class="name"><code><p>包含的子图层对象</p></code></td>
569
+ </tr>
570
+
571
+ <tr class="deep-level-0">
572
+ <td class="name"><code><a href="#title">title</a></code></td>
573
+ <td class="name">
574
+ <code>
575
+
576
+ <span class="param-type">
577
+
578
+ String
579
+
580
+ </span>
581
+
582
+
583
+
584
+ </code>
585
+ </td>
586
+ <td class="name"><code><p>图层名称</p></code></td>
587
+ </tr>
588
+
589
+ <tr class="deep-level-0">
590
+ <td class="name"><code><a href="#type">type</a></code></td>
591
+ <td class="name">
592
+ <code>
593
+
594
+ <span class="param-type">
595
+
596
+ String
597
+
598
+ </span>
599
+
600
+
601
+
602
+ </code>
603
+ </td>
604
+ <td class="name"><code><p>子图层类型</p></code></td>
605
+ </tr>
606
+
607
+ <tr class="deep-level-0">
608
+ <td class="name"><code><a href="#url">url</a></code></td>
609
+ <td class="name">
610
+ <code>
611
+
612
+ <span class="param-type">
613
+
614
+ String
615
+
616
+ </span>
617
+
618
+
619
+
620
+ </code>
621
+ </td>
622
+ <td class="name"><code><p>子图层服务地址</p></code></td>
623
+ </tr>
624
+
625
+ <tr class="deep-level-0">
626
+ <td class="name"><code><a href="#visible">visible</a></code></td>
627
+ <td class="name">
628
+ <code>
629
+
630
+ <span class="param-type">
631
+
632
+ Boolean
633
+
634
+ </span>
635
+
636
+
637
+
638
+ </code>
639
+ </td>
640
+ <td class="name"><code><p>子图层可见性</p></code></td>
641
+ </tr>
642
+
643
+ </tbody>
644
+ </table>
645
+ </div>
646
+ <h4 style="margin-top: 20px;margin-bottom: 20px;">成员变量详情</h4>
647
+ <div class="members">
648
+
649
+ <div class="member">
650
+
651
+ <span class="method-parameter is-pulled-right">
652
+ <label>类型:</label>
653
+
654
+ <span class="param-type">
655
+
656
+ Number
657
+
658
+ </span>
659
+
660
+
661
+
662
+ </span>
663
+
664
+ <h4 class="name" id="beginLevel">
665
+ <a class="href-link" href="#beginLevel">#</a>
666
+
667
+ <span class="code-name">
668
+ beginLevel
669
+ </span>
670
+
671
+ </h4>
672
+
673
+
674
+
675
+
676
+ <div class="description">
677
+ <p>开始级别</p>
678
+ </div>
679
+
680
+
681
+
682
+
683
+
684
+ <dl class="details">
685
+
686
+
687
+
688
+
689
+
690
+
691
+
692
+
693
+
694
+
695
+
696
+
697
+
698
+
699
+
700
+
701
+
702
+
703
+
704
+
705
+
706
+
707
+
708
+
709
+
710
+
711
+
712
+
713
+
714
+
715
+
716
+ </dl>
717
+
718
+
719
+
720
+
721
+
722
+ </div>
723
+
724
+ <div class="member">
725
+
726
+ <span class="method-parameter is-pulled-right">
727
+ <label>类型:</label>
728
+
729
+ <span class="param-type">
730
+
731
+ Number
732
+
733
+ </span>
734
+
735
+
736
+
737
+ </span>
738
+
739
+ <h4 class="name" id="endLevel">
740
+ <a class="href-link" href="#endLevel">#</a>
741
+
742
+ <span class="code-name">
743
+ endLevel
744
+ </span>
745
+
746
+ </h4>
747
+
748
+
749
+
750
+
751
+ <div class="description">
752
+ <p>结束级别</p>
753
+ </div>
754
+
755
+
756
+
757
+
758
+
759
+ <dl class="details">
760
+
761
+
762
+
763
+
764
+
765
+
766
+
767
+
768
+
769
+
770
+
771
+
772
+
773
+
774
+
775
+
776
+
777
+
778
+
779
+
780
+
781
+
782
+
783
+
784
+
785
+
786
+
787
+
788
+
789
+
790
+
791
+ </dl>
792
+
793
+
794
+
795
+
796
+
797
+ </div>
798
+
799
+ <div class="member">
800
+
801
+ <span class="method-parameter is-pulled-right">
802
+ <label>类型:</label>
803
+
804
+ <span class="param-type">
805
+
806
+ Object
807
+
808
+ </span>
809
+
810
+
811
+
812
+ </span>
813
+
814
+ <h4 class="name" id="extendOptions">
815
+ <a class="href-link" href="#extendOptions">#</a>
816
+
817
+ <span class="code-name">
818
+ extendOptions
819
+ </span>
820
+
821
+ </h4>
822
+
823
+
824
+
825
+
826
+ <div class="description">
827
+ <p>初始化图层的额外参数,可以通过该参数传入引擎原生的构造参数</p>
828
+ </div>
829
+
830
+
831
+
832
+
833
+
834
+ <dl class="details">
835
+
836
+
837
+
838
+
839
+
840
+
841
+ <dt class="inherited-from">Inherited From:</dt>
842
+ <dd class="inherited-from"><ul class="dummy"><li>
843
+ <a goto="extendOptions" link="SubLayer.html" onclick="getTypeHTML(event)" class="mapgis-link-name" title="SubLayer#extendOptions" SubLayer.html#extendOptions>SubLayer#extendOptions</a>
844
+ </li></ul></dd>
845
+
846
+
847
+
848
+
849
+
850
+
851
+
852
+
853
+
854
+
855
+
856
+
857
+
858
+
859
+
860
+
861
+
862
+
863
+
864
+ <dt class="tag-default">Default Value:</dt>
865
+ <dd class="tag-default"><ul class="dummy">
866
+ <li>{}</li>
867
+ </ul></dd>
868
+
869
+
870
+
871
+
872
+
873
+
874
+
875
+
876
+ </dl>
877
+
878
+
879
+
880
+
881
+
882
+ </div>
883
+
884
+ <div class="member">
885
+
886
+ <span class="method-parameter is-pulled-right">
887
+ <label>类型:</label>
888
+
889
+ <span class="param-type">
890
+
891
+ Object
892
+
893
+ </span>
894
+
895
+
896
+
897
+ </span>
898
+
899
+ <h4 class="name" id="extendProps">
900
+ <a class="href-link" href="#extendProps">#</a>
901
+
902
+ <span class="code-name">
903
+ extendProps
904
+ </span>
905
+
906
+ </h4>
907
+
908
+
909
+
910
+
911
+ <div class="description">
912
+ <p>初始化当前图层对象上不支持的属性,二次开发用户希望挂在图层对像上的属性可以存储到该属性中</p>
913
+ </div>
914
+
915
+
916
+
917
+
918
+
919
+ <dl class="details">
920
+
921
+
922
+
923
+
924
+
925
+
926
+ <dt class="inherited-from">Inherited From:</dt>
927
+ <dd class="inherited-from"><ul class="dummy"><li>
928
+ <a goto="extendProps" link="SubLayer.html" onclick="getTypeHTML(event)" class="mapgis-link-name" title="SubLayer#extendProps" SubLayer.html#extendProps>SubLayer#extendProps</a>
929
+ </li></ul></dd>
930
+
931
+
932
+
933
+
934
+
935
+
936
+
937
+
938
+
939
+
940
+
941
+
942
+
943
+
944
+
945
+
946
+
947
+
948
+
949
+ <dt class="tag-default">Default Value:</dt>
950
+ <dd class="tag-default"><ul class="dummy">
951
+ <li>{}</li>
952
+ </ul></dd>
953
+
954
+
955
+
956
+
957
+
958
+
959
+
960
+
961
+ </dl>
962
+
963
+
964
+
965
+
966
+
967
+ </div>
968
+
969
+ <div class="member">
970
+
971
+ <span class="method-parameter is-pulled-right">
972
+ <label>类型:</label>
973
+
974
+ <span class="param-type">
975
+
976
+ String
977
+
978
+ </span>
979
+
980
+
981
+
982
+ </span>
983
+
984
+ <h4 class="name" id="id">
985
+ <a class="href-link" href="#id">#</a>
986
+
987
+ <span class="code-name">
988
+ id
989
+ </span>
990
+
991
+ </h4>
992
+
993
+
994
+
995
+
996
+ <div class="description">
997
+ <p>子图层的id</p>
998
+ </div>
999
+
1000
+
1001
+
1002
+
1003
+
1004
+ <dl class="details">
1005
+
1006
+
1007
+
1008
+
1009
+
1010
+
1011
+
1012
+
1013
+ <dt class="tag-overrides">Overrides:</dt>
1014
+ <dd class="tag-overrides"><ul class="dummy"><li>
1015
+ <a class="mapgis-link-name" title="SubLayer#id" SubLayer.html#id>SubLayer#id</a>
1016
+ </li></ul></dd>
1017
+
1018
+
1019
+
1020
+
1021
+
1022
+
1023
+
1024
+
1025
+
1026
+
1027
+
1028
+
1029
+
1030
+
1031
+
1032
+
1033
+
1034
+
1035
+
1036
+
1037
+
1038
+
1039
+
1040
+
1041
+ </dl>
1042
+
1043
+
1044
+
1045
+
1046
+
1047
+ </div>
1048
+
1049
+ <div class="member">
1050
+
1051
+ <span class="method-parameter is-pulled-right">
1052
+ <label>类型:</label>
1053
+
1054
+ <span class="param-type">
1055
+
1056
+ Array.&lt;<a onclick="getTypeHTML(event)" link="LabelClass.html">LabelClass</a>>
1057
+
1058
+ </span>
1059
+
1060
+
1061
+
1062
+ </span>
1063
+
1064
+ <h4 class="name" id="labelingInfo">
1065
+ <a class="href-link" href="#labelingInfo">#</a>
1066
+
1067
+ <span class="code-name">
1068
+ labelingInfo
1069
+ </span>
1070
+
1071
+ </h4>
1072
+
1073
+
1074
+
1075
+
1076
+ <div class="description">
1077
+ <p>注记图层样式,仅当此图层类型为注记图层时生效</p>
1078
+ </div>
1079
+
1080
+
1081
+
1082
+
1083
+
1084
+ <dl class="details">
1085
+
1086
+
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
+
1114
+
1115
+
1116
+ </dl>
1117
+
1118
+
1119
+
1120
+
1121
+
1122
+ </div>
1123
+
1124
+ <div class="member">
1125
+
1126
+ <span class="method-parameter is-pulled-right">
1127
+ <label>类型:</label>
1128
+
1129
+ <span class="param-type">
1130
+
1131
+ <a link="Layer.html" onclick="getTypeHTML(event)" class="mapgis-link-name" title="Layer" Layer.html>Layer</a>
1132
+
1133
+ </span>
1134
+
1135
+
1136
+
1137
+ </span>
1138
+
1139
+ <h4 class="name" id="layer">
1140
+ <a class="href-link" href="#layer">#</a>
1141
+
1142
+ <span class="code-name">
1143
+ layer
1144
+ </span>
1145
+
1146
+ </h4>
1147
+
1148
+
1149
+
1150
+
1151
+ <div class="description">
1152
+ <p>父图层对象</p>
1153
+ </div>
1154
+
1155
+
1156
+
1157
+
1158
+
1159
+ <dl class="details">
1160
+
1161
+
1162
+
1163
+
1164
+
1165
+
1166
+
1167
+
1168
+ <dt class="tag-overrides">Overrides:</dt>
1169
+ <dd class="tag-overrides"><ul class="dummy"><li>
1170
+ <a class="mapgis-link-name" title="SubLayer#layer" SubLayer.html#layer>SubLayer#layer</a>
1171
+ </li></ul></dd>
1172
+
1173
+
1174
+
1175
+
1176
+
1177
+
1178
+
1179
+
1180
+
1181
+
1182
+
1183
+
1184
+
1185
+
1186
+
1187
+
1188
+
1189
+
1190
+
1191
+
1192
+
1193
+
1194
+
1195
+
1196
+ </dl>
1197
+
1198
+
1199
+
1200
+
1201
+
1202
+ </div>
1203
+
1204
+ <div class="member">
1205
+
1206
+ <span class="method-parameter is-pulled-right">
1207
+ <label>类型:</label>
1208
+
1209
+ <span class="param-type">
1210
+
1211
+ Number
1212
+
1213
+ </span>
1214
+
1215
+
1216
+
1217
+ </span>
1218
+
1219
+ <h4 class="name" id="layerIndex">
1220
+ <a class="href-link" href="#layerIndex">#</a>
1221
+
1222
+ <span class="code-name">
1223
+ layerIndex
1224
+ </span>
1225
+
1226
+ </h4>
1227
+
1228
+
1229
+
1230
+
1231
+ <div class="description">
1232
+ <p>子图层的索引</p>
1233
+ </div>
1234
+
1235
+
1236
+
1237
+
1238
+
1239
+ <dl class="details">
1240
+
1241
+
1242
+
1243
+
1244
+
1245
+
1246
+
1247
+
1248
+
1249
+
1250
+
1251
+
1252
+
1253
+
1254
+
1255
+
1256
+
1257
+
1258
+
1259
+
1260
+
1261
+
1262
+
1263
+
1264
+
1265
+
1266
+
1267
+
1268
+
1269
+
1270
+
1271
+ </dl>
1272
+
1273
+
1274
+
1275
+
1276
+
1277
+ </div>
1278
+
1279
+ <div class="member">
1280
+
1281
+ <span class="method-parameter is-pulled-right">
1282
+ <label>类型:</label>
1283
+
1284
+ <span class="param-type">
1285
+
1286
+ Number
1287
+
1288
+ </span>
1289
+
1290
+
1291
+
1292
+ </span>
1293
+
1294
+ <h4 class="name" id="maxFrameSize">
1295
+ <a class="href-link" href="#maxFrameSize">#</a>
1296
+
1297
+ <span class="code-name">
1298
+ maxFrameSize
1299
+ </span>
1300
+
1301
+ </h4>
1302
+
1303
+
1304
+
1305
+
1306
+ <div class="description">
1307
+ <p>最大网格大小</p>
1308
+ </div>
1309
+
1310
+
1311
+
1312
+
1313
+
1314
+ <dl class="details">
1315
+
1316
+
1317
+
1318
+
1319
+
1320
+
1321
+
1322
+
1323
+
1324
+
1325
+
1326
+
1327
+
1328
+
1329
+
1330
+
1331
+
1332
+
1333
+
1334
+
1335
+
1336
+
1337
+
1338
+
1339
+
1340
+
1341
+
1342
+
1343
+
1344
+
1345
+
1346
+ </dl>
1347
+
1348
+
1349
+
1350
+
1351
+
1352
+ </div>
1353
+
1354
+ <div class="member">
1355
+
1356
+ <span class="method-parameter is-pulled-right">
1357
+ <label>类型:</label>
1358
+
1359
+ <span class="param-type">
1360
+
1361
+ Number
1362
+
1363
+ </span>
1364
+
1365
+
1366
+
1367
+ </span>
1368
+
1369
+ <h4 class="name" id="opacity">
1370
+ <a class="href-link" href="#opacity">#</a>
1371
+
1372
+ <span class="code-name">
1373
+ opacity
1374
+ </span>
1375
+
1376
+ </h4>
1377
+
1378
+
1379
+
1380
+
1381
+ <div class="description">
1382
+ <p>子图层透明度</p>
1383
+ </div>
1384
+
1385
+
1386
+
1387
+
1388
+
1389
+ <dl class="details">
1390
+
1391
+
1392
+
1393
+
1394
+
1395
+
1396
+
1397
+
1398
+
1399
+
1400
+
1401
+
1402
+
1403
+
1404
+
1405
+
1406
+
1407
+
1408
+
1409
+
1410
+
1411
+
1412
+
1413
+
1414
+
1415
+
1416
+
1417
+
1418
+
1419
+
1420
+
1421
+ </dl>
1422
+
1423
+
1424
+
1425
+
1426
+
1427
+ </div>
1428
+
1429
+ <div class="member">
1430
+
1431
+ <span class="method-parameter is-pulled-right">
1432
+ <label>类型:</label>
1433
+
1434
+ <span class="param-type">
1435
+
1436
+ <a link="Point.html" onclick="getTypeHTML(event)" class="mapgis-link-name" title="Point" Point.html>Point</a>
1437
+
1438
+ </span>
1439
+
1440
+
1441
+
1442
+ </span>
1443
+
1444
+ <h4 class="name" id="originPoint">
1445
+ <a class="href-link" href="#originPoint">#</a>
1446
+
1447
+ <span class="code-name">
1448
+ originPoint
1449
+ </span>
1450
+
1451
+ </h4>
1452
+
1453
+
1454
+
1455
+
1456
+ <div class="description">
1457
+ <p>网格划分的源点</p>
1458
+ </div>
1459
+
1460
+
1461
+
1462
+
1463
+
1464
+ <dl class="details">
1465
+
1466
+
1467
+
1468
+
1469
+
1470
+
1471
+
1472
+
1473
+
1474
+
1475
+
1476
+
1477
+
1478
+
1479
+
1480
+
1481
+
1482
+
1483
+
1484
+
1485
+
1486
+
1487
+
1488
+
1489
+
1490
+
1491
+
1492
+
1493
+
1494
+
1495
+
1496
+ </dl>
1497
+
1498
+
1499
+
1500
+
1501
+
1502
+ </div>
1503
+
1504
+ <div class="member">
1505
+
1506
+ <span class="method-parameter is-pulled-right">
1507
+ <label>类型:</label>
1508
+
1509
+ <span class="param-type">
1510
+
1511
+ <a link="Extent.html" onclick="getTypeHTML(event)" class="mapgis-link-name" title="Extent" Extent.html>Extent</a>
1512
+
1513
+ </span>
1514
+
1515
+
1516
+
1517
+ </span>
1518
+
1519
+ <h4 class="name" id="range">
1520
+ <a class="href-link" href="#range">#</a>
1521
+
1522
+ <span class="code-name">
1523
+ range
1524
+ </span>
1525
+
1526
+ </h4>
1527
+
1528
+
1529
+
1530
+
1531
+ <div class="description">
1532
+ <p>子图层服范围(二维)</p>
1533
+ </div>
1534
+
1535
+
1536
+
1537
+
1538
+
1539
+ <dl class="details">
1540
+
1541
+
1542
+
1543
+
1544
+
1545
+
1546
+
1547
+
1548
+
1549
+
1550
+
1551
+
1552
+
1553
+
1554
+
1555
+
1556
+
1557
+
1558
+
1559
+
1560
+
1561
+
1562
+
1563
+
1564
+
1565
+
1566
+
1567
+
1568
+
1569
+
1570
+
1571
+ </dl>
1572
+
1573
+
1574
+
1575
+
1576
+
1577
+ </div>
1578
+
1579
+ <div class="member">
1580
+
1581
+ <span class="method-parameter is-pulled-right">
1582
+ <label>类型:</label>
1583
+
1584
+ <span class="param-type">
1585
+
1586
+ <a link="Extent.html" onclick="getTypeHTML(event)" class="mapgis-link-name" title="Extent" Extent.html>Extent</a>
1587
+
1588
+ </span>
1589
+
1590
+
1591
+
1592
+ </span>
1593
+
1594
+ <h4 class="name" id="range3D">
1595
+ <a class="href-link" href="#range3D">#</a>
1596
+
1597
+ <span class="code-name">
1598
+ range3D
1599
+ </span>
1600
+
1601
+ </h4>
1602
+
1603
+
1604
+
1605
+
1606
+ <div class="description">
1607
+ <p>子图层服范围(三维)</p>
1608
+ </div>
1609
+
1610
+
1611
+
1612
+
1613
+
1614
+ <dl class="details">
1615
+
1616
+
1617
+
1618
+
1619
+
1620
+
1621
+
1622
+
1623
+
1624
+
1625
+
1626
+
1627
+
1628
+
1629
+
1630
+
1631
+
1632
+
1633
+
1634
+
1635
+
1636
+
1637
+
1638
+
1639
+
1640
+
1641
+
1642
+
1643
+
1644
+
1645
+
1646
+ </dl>
1647
+
1648
+
1649
+
1650
+
1651
+
1652
+ </div>
1653
+
1654
+ <div class="member">
1655
+
1656
+ <span class="method-parameter is-pulled-right">
1657
+ <label>类型:</label>
1658
+
1659
+ <span class="param-type">
1660
+
1661
+ String
1662
+
1663
+ </span>
1664
+
1665
+
1666
+
1667
+ </span>
1668
+
1669
+ <h4 class="name" id="renderType">
1670
+ <a class="href-link" href="#renderType">#</a>
1671
+
1672
+ <span class="code-name">
1673
+ renderType
1674
+ </span>
1675
+
1676
+ </h4>
1677
+
1678
+
1679
+
1680
+
1681
+ <div class="description">
1682
+ <p>子图层渲染类型</p>
1683
+ </div>
1684
+
1685
+
1686
+
1687
+
1688
+
1689
+ <dl class="details">
1690
+
1691
+
1692
+
1693
+
1694
+
1695
+
1696
+
1697
+
1698
+
1699
+
1700
+
1701
+
1702
+
1703
+
1704
+
1705
+
1706
+
1707
+
1708
+
1709
+
1710
+
1711
+
1712
+
1713
+
1714
+
1715
+
1716
+
1717
+
1718
+
1719
+
1720
+
1721
+ </dl>
1722
+
1723
+
1724
+
1725
+
1726
+
1727
+ </div>
1728
+
1729
+ <div class="member">
1730
+
1731
+ <span class="method-parameter is-pulled-right">
1732
+ <label>类型:</label>
1733
+
1734
+ <span class="param-type">
1735
+
1736
+ <a link="SpatialReference.html" onclick="getTypeHTML(event)" class="mapgis-link-name" title="SpatialReference" SpatialReference.html>SpatialReference</a>
1737
+
1738
+ </span>
1739
+
1740
+
1741
+
1742
+ </span>
1743
+
1744
+ <h4 class="name" id="spatialReference">
1745
+ <a class="href-link" href="#spatialReference">#</a>
1746
+
1747
+ <span class="code-name">
1748
+ spatialReference
1749
+ </span>
1750
+
1751
+ </h4>
1752
+
1753
+
1754
+
1755
+
1756
+ <div class="description">
1757
+ <p>子图层空间参考系</p>
1758
+ </div>
1759
+
1760
+
1761
+
1762
+
1763
+
1764
+ <dl class="details">
1765
+
1766
+
1767
+
1768
+
1769
+
1770
+
1771
+
1772
+
1773
+ <dt class="tag-overrides">Overrides:</dt>
1774
+ <dd class="tag-overrides"><ul class="dummy"><li>
1775
+ <a class="mapgis-link-name" title="SubLayer#spatialReference" SubLayer.html#spatialReference>SubLayer#spatialReference</a>
1776
+ </li></ul></dd>
1777
+
1778
+
1779
+
1780
+
1781
+
1782
+
1783
+
1784
+
1785
+
1786
+
1787
+
1788
+
1789
+
1790
+
1791
+
1792
+
1793
+
1794
+
1795
+
1796
+
1797
+
1798
+
1799
+
1800
+
1801
+ </dl>
1802
+
1803
+
1804
+
1805
+
1806
+
1807
+ </div>
1808
+
1809
+ <div class="member">
1810
+
1811
+ <span class="method-parameter is-pulled-right">
1812
+ <label>类型:</label>
1813
+
1814
+ <span class="param-type">
1815
+
1816
+ Array
1817
+
1818
+ </span>
1819
+
1820
+
1821
+
1822
+ </span>
1823
+
1824
+ <h4 class="name" id="sublayers">
1825
+ <a class="href-link" href="#sublayers">#</a>
1826
+
1827
+ <span class="code-name">
1828
+ sublayers
1829
+ </span>
1830
+
1831
+ </h4>
1832
+
1833
+
1834
+
1835
+
1836
+ <div class="description">
1837
+ <p>包含的子图层对象</p>
1838
+ </div>
1839
+
1840
+
1841
+
1842
+
1843
+
1844
+ <dl class="details">
1845
+
1846
+
1847
+
1848
+
1849
+
1850
+
1851
+
1852
+
1853
+ <dt class="tag-overrides">Overrides:</dt>
1854
+ <dd class="tag-overrides"><ul class="dummy"><li>
1855
+ <a class="mapgis-link-name" title="SubLayer#sublayers" SubLayer.html#sublayers>SubLayer#sublayers</a>
1856
+ </li></ul></dd>
1857
+
1858
+
1859
+
1860
+
1861
+
1862
+
1863
+
1864
+
1865
+
1866
+
1867
+
1868
+
1869
+
1870
+
1871
+
1872
+
1873
+
1874
+
1875
+
1876
+
1877
+
1878
+
1879
+
1880
+
1881
+ </dl>
1882
+
1883
+
1884
+
1885
+
1886
+
1887
+ </div>
1888
+
1889
+ <div class="member">
1890
+
1891
+ <span class="method-parameter is-pulled-right">
1892
+ <label>类型:</label>
1893
+
1894
+ <span class="param-type">
1895
+
1896
+ String
1897
+
1898
+ </span>
1899
+
1900
+
1901
+
1902
+ </span>
1903
+
1904
+ <h4 class="name" id="title">
1905
+ <a class="href-link" href="#title">#</a>
1906
+
1907
+ <span class="code-name">
1908
+ title
1909
+ </span>
1910
+
1911
+ </h4>
1912
+
1913
+
1914
+
1915
+
1916
+ <div class="description">
1917
+ <p>图层名称</p>
1918
+ </div>
1919
+
1920
+
1921
+
1922
+
1923
+
1924
+ <dl class="details">
1925
+
1926
+
1927
+
1928
+
1929
+
1930
+
1931
+ <dt class="inherited-from">Inherited From:</dt>
1932
+ <dd class="inherited-from"><ul class="dummy"><li>
1933
+ <a goto="title" link="SubLayer.html" onclick="getTypeHTML(event)" class="mapgis-link-name" title="SubLayer#title" SubLayer.html#title>SubLayer#title</a>
1934
+ </li></ul></dd>
1935
+
1936
+
1937
+
1938
+
1939
+
1940
+
1941
+
1942
+
1943
+
1944
+
1945
+
1946
+
1947
+
1948
+
1949
+
1950
+
1951
+
1952
+
1953
+
1954
+
1955
+
1956
+
1957
+
1958
+
1959
+
1960
+
1961
+ </dl>
1962
+
1963
+
1964
+
1965
+
1966
+
1967
+ </div>
1968
+
1969
+ <div class="member">
1970
+
1971
+ <span class="method-parameter is-pulled-right">
1972
+ <label>类型:</label>
1973
+
1974
+ <span class="param-type">
1975
+
1976
+ String
1977
+
1978
+ </span>
1979
+
1980
+
1981
+
1982
+ </span>
1983
+
1984
+ <h4 class="name" id="type">
1985
+ <a class="href-link" href="#type">#</a>
1986
+
1987
+ <span class="code-name">
1988
+ type
1989
+ </span>
1990
+
1991
+ </h4>
1992
+
1993
+
1994
+
1995
+
1996
+ <div class="description">
1997
+ <p>子图层类型</p>
1998
+ </div>
1999
+
2000
+
2001
+
2002
+
2003
+
2004
+ <dl class="details">
2005
+
2006
+
2007
+
2008
+
2009
+
2010
+
2011
+
2012
+
2013
+
2014
+
2015
+
2016
+
2017
+
2018
+
2019
+
2020
+
2021
+
2022
+
2023
+
2024
+
2025
+
2026
+
2027
+
2028
+
2029
+
2030
+
2031
+
2032
+
2033
+
2034
+
2035
+
2036
+ </dl>
2037
+
2038
+
2039
+
2040
+
2041
+
2042
+ </div>
2043
+
2044
+ <div class="member">
2045
+
2046
+ <span class="method-parameter is-pulled-right">
2047
+ <label>类型:</label>
2048
+
2049
+ <span class="param-type">
2050
+
2051
+ String
2052
+
2053
+ </span>
2054
+
2055
+
2056
+
2057
+ </span>
2058
+
2059
+ <h4 class="name" id="url">
2060
+ <a class="href-link" href="#url">#</a>
2061
+
2062
+ <span class="code-name">
2063
+ url
2064
+ </span>
2065
+
2066
+ </h4>
2067
+
2068
+
2069
+
2070
+
2071
+ <div class="description">
2072
+ <p>子图层服务地址</p>
2073
+ </div>
2074
+
2075
+
2076
+
2077
+
2078
+
2079
+ <dl class="details">
2080
+
2081
+
2082
+
2083
+
2084
+
2085
+
2086
+
2087
+
2088
+
2089
+
2090
+
2091
+
2092
+
2093
+
2094
+
2095
+
2096
+
2097
+
2098
+
2099
+
2100
+
2101
+
2102
+
2103
+
2104
+
2105
+
2106
+
2107
+
2108
+
2109
+
2110
+
2111
+ </dl>
2112
+
2113
+
2114
+
2115
+
2116
+
2117
+ </div>
2118
+
2119
+ <div class="member">
2120
+
2121
+ <span class="method-parameter is-pulled-right">
2122
+ <label>类型:</label>
2123
+
2124
+ <span class="param-type">
2125
+
2126
+ Boolean
2127
+
2128
+ </span>
2129
+
2130
+
2131
+
2132
+ </span>
2133
+
2134
+ <h4 class="name" id="visible">
2135
+ <a class="href-link" href="#visible">#</a>
2136
+
2137
+ <span class="code-name">
2138
+ visible
2139
+ </span>
2140
+
2141
+ </h4>
2142
+
2143
+
2144
+
2145
+
2146
+ <div class="description">
2147
+ <p>子图层可见性</p>
2148
+ </div>
2149
+
2150
+
2151
+
2152
+
2153
+
2154
+ <dl class="details">
2155
+
2156
+
2157
+
2158
+
2159
+
2160
+
2161
+
2162
+
2163
+ <dt class="tag-overrides">Overrides:</dt>
2164
+ <dd class="tag-overrides"><ul class="dummy"><li>
2165
+ <a class="mapgis-link-name" title="SubLayer#visible" SubLayer.html#visible>SubLayer#visible</a>
2166
+ </li></ul></dd>
2167
+
2168
+
2169
+
2170
+
2171
+
2172
+
2173
+
2174
+
2175
+
2176
+
2177
+
2178
+
2179
+
2180
+
2181
+
2182
+
2183
+
2184
+
2185
+
2186
+
2187
+
2188
+
2189
+
2190
+
2191
+ </dl>
2192
+
2193
+
2194
+
2195
+
2196
+
2197
+ </div>
2198
+
2199
+ </div>
2200
+ </div>
2201
+
2202
+
2203
+
2204
+ <div class='vertical-section'>
2205
+ <h3 id='function'>方法</h3>
2206
+ <h4 style="margin-top: 20px;margin-bottom: 20px;">方法概述</h4>
2207
+ <div class="members">
2208
+ <div class="table-container">
2209
+ <table class="params table">
2210
+ <thead>
2211
+ <tr>
2212
+ <th>名称</th>
2213
+ <th>返回值类型</th>
2214
+ <th>描述</th>
2215
+ </tr>
2216
+ </thead>
2217
+ <tbody>
2218
+
2219
+ <tr class="deep-level-0">
2220
+ <td class="name"><code><a href="#clone">clone</a></code></td>
2221
+ <td class="name">
2222
+ <code>
2223
+
2224
+
2225
+ <span class="param-type">
2226
+
2227
+ <a link="SubLayer.html" onclick="getTypeHTML(event)" class="mapgis-link-name" title="SubLayer" SubLayer.html>SubLayer</a>
2228
+
2229
+ </span>
2230
+
2231
+
2232
+
2233
+
2234
+ </code>
2235
+ </td>
2236
+ <td class="name"><code><p>克隆方法</p></code></td>
2237
+ </tr>
2238
+
2239
+ <tr class="deep-level-0">
2240
+ <td class="name"><code><a href="#off">off</a></code></td>
2241
+ <td class="name">
2242
+ <code>
2243
+
2244
+
2245
+ <span class="param-type">
2246
+
2247
+ Object
2248
+
2249
+ </span>
2250
+
2251
+
2252
+
2253
+
2254
+ </code>
2255
+ </td>
2256
+ <td class="name"><code><p>移除事件<br/>
2257
+ 示例如下:<br/>
2258
+ </code></td>
2259
+ </tr>
2260
+
2261
+ <tr class="deep-level-0">
2262
+ <td class="name"><code><a href="#on">on</a></code></td>
2263
+ <td class="name">
2264
+ <code>
2265
+
2266
+
2267
+ <span class="param-type">
2268
+
2269
+ Object
2270
+
2271
+ </span>
2272
+
2273
+
2274
+
2275
+
2276
+ </code>
2277
+ </td>
2278
+ <td class="name"><code><p>注册一个新的监听事件;<br/>
2279
+ 示例如下:<br/>
2280
+ </code></td>
2281
+ </tr>
2282
+
2283
+ <tr class="deep-level-0">
2284
+ <td class="name"><code><a href="#reset">reset</a></code></td>
2285
+ <td class="name">
2286
+ <code>
2287
+
2288
+ </code>
2289
+ </td>
2290
+ <td class="name"><code><p>重置视角到子图层外包盒处</p></code></td>
2291
+ </tr>
2292
+
2293
+ <tr class="deep-level-0">
2294
+ <td class="name"><code><a href="#toJSON">toJSON</a></code></td>
2295
+ <td class="name">
2296
+ <code>
2297
+
2298
+
2299
+ <span class="param-type">
2300
+
2301
+ Object
2302
+
2303
+ </span>
2304
+
2305
+
2306
+
2307
+
2308
+ </code>
2309
+ </td>
2310
+ <td class="name"><code><p>将对象转为json对象</p></code></td>
2311
+ </tr>
2312
+
2313
+ </tbody>
2314
+ </table>
2315
+ </div>
2316
+ <h4 style="margin-top: 20px;margin-bottom: 20px;">方法详情</h4>
2317
+
2318
+ <div class="member">
2319
+
2320
+
2321
+
2322
+ <h4 class="name" id="clone">
2323
+ <a class="href-link" href="#clone">#</a>
2324
+
2325
+ <span class="code-name" id="clone" style="font-size:30px">
2326
+
2327
+ clone<span class="signature">()</span>
2328
+
2329
+ </span>
2330
+ </h4>
2331
+
2332
+
2333
+
2334
+ <div class="description">
2335
+ <p>克隆方法</p>
2336
+ </div>
2337
+
2338
+
2339
+
2340
+
2341
+
2342
+
2343
+
2344
+
2345
+
2346
+
2347
+
2348
+
2349
+
2350
+
2351
+ <dl class="details">
2352
+
2353
+
2354
+
2355
+
2356
+
2357
+
2358
+ <dt class="inherited-from">Inherited From:</dt>
2359
+ <dd class="inherited-from"><ul class="dummy"><li>
2360
+ <a goto="clone" link="SubLayer.html" onclick="getTypeHTML(event)" class="mapgis-link-name" title="SubLayer#clone" SubLayer.html#clone>SubLayer#clone</a>
2361
+ </li></ul></dd>
2362
+
2363
+
2364
+
2365
+
2366
+
2367
+
2368
+
2369
+
2370
+
2371
+
2372
+
2373
+
2374
+
2375
+
2376
+
2377
+
2378
+
2379
+
2380
+
2381
+
2382
+
2383
+
2384
+
2385
+
2386
+
2387
+
2388
+ </dl>
2389
+
2390
+
2391
+
2392
+
2393
+
2394
+
2395
+
2396
+
2397
+
2398
+
2399
+
2400
+
2401
+
2402
+
2403
+
2404
+
2405
+
2406
+
2407
+ <div class='columns method-parameter'>
2408
+ <div class="column is-2"><label>返回值</label></div>
2409
+ <div class="column is-10">
2410
+
2411
+
2412
+
2413
+ <div class="columns">
2414
+
2415
+ <div class='param-desc column is-7'><p>图层</p></div>
2416
+
2417
+
2418
+ <div class='column is-5 has-text-left'>
2419
+ <label>类型: </label>
2420
+
2421
+ <span class="param-type">
2422
+
2423
+ <a link="SubLayer.html" onclick="getTypeHTML(event)" class="mapgis-link-name" title="SubLayer" SubLayer.html>SubLayer</a>
2424
+
2425
+ </span>
2426
+
2427
+
2428
+
2429
+ </div>
2430
+
2431
+ </div>
2432
+
2433
+
2434
+ </div>
2435
+ </div>
2436
+
2437
+
2438
+
2439
+
2440
+
2441
+
2442
+ </div>
2443
+
2444
+ <div class="member">
2445
+
2446
+
2447
+
2448
+ <h4 class="name" id="off">
2449
+ <a class="href-link" href="#off">#</a>
2450
+
2451
+ <span class="code-name" id="off" style="font-size:30px">
2452
+
2453
+ off<span class="signature">(types<span class="signature-attributes">opt</span>, fn<span class="signature-attributes">opt</span>, context<span class="signature-attributes">opt</span>)</span>
2454
+
2455
+ </span>
2456
+ </h4>
2457
+
2458
+
2459
+
2460
+ <div class="description">
2461
+ <p>移除事件<br/>
2462
+ 示例如下:<br/>
2463
+ <a href='#off1'>[1、移除一个事件的指定回调函数]</a><br/>
2464
+ <a href='#off2'>[2、移除一个事件的所有回调函数]</a><br/>
2465
+ <a href='#off3'>[3、移除多个事件的同一个指定的回调函数]</a><br/>
2466
+ <a href='#off4'>[4、移除多个指定事件的回调函数]</a><br/>
2467
+ <a href='#off5'>[5、删除时指定上下文 - types类型为字符串]</a><br/>
2468
+ <a href='#off6'>[6、删除时指定上下文 - types类型为对象]</a><br/></p>
2469
+ </div>
2470
+
2471
+
2472
+
2473
+
2474
+
2475
+
2476
+
2477
+
2478
+
2479
+
2480
+ <h4>参数</h4>
2481
+
2482
+ <div class="table-container">
2483
+ <table class="params table">
2484
+ <thead>
2485
+ <tr>
2486
+
2487
+ <th>名称</th>
2488
+
2489
+
2490
+ <th>类型</th>
2491
+
2492
+
2493
+
2494
+ <th class="last">描述</th>
2495
+ </tr>
2496
+ </thead>
2497
+
2498
+ <tbody>
2499
+
2500
+
2501
+
2502
+ <tr class="deep-level-0">
2503
+
2504
+ <td class="name"><code>types</code></td>
2505
+
2506
+
2507
+ <td class="type">
2508
+
2509
+
2510
+ <span class="param-type">
2511
+
2512
+ string
2513
+
2514
+ </span>
2515
+
2516
+
2517
+
2518
+
2519
+ </td>
2520
+
2521
+
2522
+
2523
+ <td class="description last"><p>移除指定事件类型上绑定的回调函数<br/>
2524
+ 当类型为字符串时,可以移除单个或多个事件类型绑定的回调函数,单个事件:&quot;click&quot;,多个事件:以空格分割:&quot;click double-click&quot;;<br/>
2525
+ 当types为对象时,使用如下方式移除事件:{'click': onClickFun, 'mouse-move': onMouseMoveFun}</p></td>
2526
+ </tr>
2527
+
2528
+
2529
+
2530
+
2531
+
2532
+
2533
+ <tr class="deep-level-0">
2534
+
2535
+ <td class="name"><code>fn</code></td>
2536
+
2537
+
2538
+ <td class="type">
2539
+
2540
+
2541
+ <span class="param-type">
2542
+
2543
+ function
2544
+
2545
+ </span>
2546
+
2547
+
2548
+
2549
+
2550
+ </td>
2551
+
2552
+
2553
+
2554
+ <td class="description last"><p>事件回调函数,当types为字符串,且不指定要删除的回调函数时,删除该事件上的所有回调函数</p></td>
2555
+ </tr>
2556
+
2557
+
2558
+
2559
+
2560
+
2561
+
2562
+ <tr class="deep-level-0">
2563
+
2564
+ <td class="name"><code>context</code></td>
2565
+
2566
+
2567
+ <td class="type">
2568
+
2569
+
2570
+ <span class="param-type">
2571
+
2572
+ Object
2573
+
2574
+ </span>
2575
+
2576
+
2577
+
2578
+
2579
+ </td>
2580
+
2581
+
2582
+
2583
+ <td class="description last"><p>事件回调函数的this关键字将指向的对象</p></td>
2584
+ </tr>
2585
+
2586
+
2587
+
2588
+
2589
+ </tbody>
2590
+ </table>
2591
+ </div>
2592
+
2593
+
2594
+
2595
+
2596
+
2597
+
2598
+ <dl class="details">
2599
+
2600
+
2601
+
2602
+
2603
+
2604
+
2605
+ <dt class="inherited-from">Inherited From:</dt>
2606
+ <dd class="inherited-from"><ul class="dummy"><li>
2607
+ <a goto="off" link="Evented.html" onclick="getTypeHTML(event)" class="mapgis-link-name" title="Evented#off" Evented.html#off>Evented#off</a>
2608
+ </li></ul></dd>
2609
+
2610
+
2611
+
2612
+
2613
+
2614
+
2615
+
2616
+
2617
+
2618
+
2619
+
2620
+
2621
+
2622
+
2623
+
2624
+
2625
+
2626
+
2627
+
2628
+
2629
+
2630
+
2631
+
2632
+
2633
+
2634
+
2635
+ </dl>
2636
+
2637
+
2638
+
2639
+
2640
+
2641
+
2642
+
2643
+
2644
+
2645
+
2646
+
2647
+
2648
+
2649
+
2650
+
2651
+
2652
+
2653
+
2654
+ <div class='columns method-parameter'>
2655
+ <div class="column is-2"><label>返回值</label></div>
2656
+ <div class="column is-10">
2657
+
2658
+
2659
+
2660
+ <div class="columns">
2661
+
2662
+ <div class='param-desc column is-7'><p>当前实例</p></div>
2663
+
2664
+
2665
+ <div class='column is-5 has-text-left'>
2666
+ <label>类型: </label>
2667
+
2668
+ <span class="param-type">
2669
+
2670
+ Object
2671
+
2672
+ </span>
2673
+
2674
+
2675
+
2676
+ </div>
2677
+
2678
+ </div>
2679
+
2680
+
2681
+ </div>
2682
+ </div>
2683
+
2684
+
2685
+
2686
+
2687
+
2688
+
2689
+ <h5>示例</h5>
2690
+
2691
+ <p class="code-caption"><h5 id='off1'>移除一个事件的指定回调函数</h5></p>
2692
+
2693
+
2694
+ <pre class="prettyprint"><code>// 一个事件的回调函数
2695
+ const clickFunction = function (event) {
2696
+ console.log("点击事件:", event)
2697
+ }
2698
+ // 调用MapView或SceneView的off方法移除一个事件的回调函数
2699
+ view.off('click', clickFunction)</code></pre>
2700
+
2701
+
2702
+ <p class="code-caption"><h5 id='off2'>移除一个事件的所有回调函数</h5></p>
2703
+
2704
+
2705
+ <pre class="prettyprint"><code>// 一个事件的回调函数1
2706
+ const clickFunction1 = function (event) {
2707
+ console.log("点击事件1:", event)
2708
+ }
2709
+
2710
+ // 一个事件的回调函数2
2711
+ const clickFunction2 = function (event) {
2712
+ console.log("点击事件2:", event)
2713
+ }
2714
+
2715
+ // 调用MapView或SceneView的off方法移除一个事件的所有回调函数
2716
+ // 不指定回调函数,则移除该事件上的所有绑定的回调函数
2717
+ view.off('click')</code></pre>
2718
+
2719
+
2720
+ <p class="code-caption"><h5 id='off3'>移除多个事件的同一个指定的回调函数</h5></p>
2721
+
2722
+
2723
+ <pre class="prettyprint"><code>// 多个事件的同一个回调函数
2724
+ const eventFunction = function (event) {
2725
+ console.log("事件:", event)
2726
+ }
2727
+ // 调用MapView或SceneView的off方法移除多个事件的同一个指定的回调函数
2728
+ view.off('click double-click', eventFunction)</code></pre>
2729
+
2730
+
2731
+ <p class="code-caption"><h5 id='off4'>移除多个指定事件的回调函数</h5></p>
2732
+
2733
+
2734
+ <pre class="prettyprint"><code>// 一个事件的回调函数
2735
+ const clickFunction = function (event) {
2736
+ console.log("click事件:", event)
2737
+ }
2738
+ // 调用MapView或SceneView的off方法移除多个指定事件的回调函数
2739
+ view.off({
2740
+ // 移除click事件上一个指定的函数
2741
+ "click": clickFunction,
2742
+ // 移除double-click上所有指定的函数
2743
+ "double-click": undefined
2744
+ })</code></pre>
2745
+
2746
+
2747
+ <p class="code-caption"><h5 id='off5'>删除时指定上下文 - types类型为字符串</h5></p>
2748
+
2749
+
2750
+ <pre class="prettyprint"><code>// 一个事件的回调函数
2751
+ const clickFunction = function (event) {
2752
+ console.log("点击事件:", event)
2753
+ }
2754
+ // 调用MapView或SceneView的off方法移除一个事件的回调函数
2755
+ view.off('click', clickFunction, view)
2756
+ // 调用MapView或SceneView的off方法移除一个事件的所有回调函数
2757
+ view.off('click', undefined, view)</code></pre>
2758
+
2759
+
2760
+ <p class="code-caption"><h5 id='off6'>删除时指定上下文 - types类型为对象</h5></p>
2761
+
2762
+
2763
+ <pre class="prettyprint"><code>// 一个事件的回调函数
2764
+ const clickFunction = function (event) {
2765
+ console.log("click事件:", event)
2766
+ }
2767
+ // 调用MapView或SceneView的off方法移除多个指定事件的回调函数
2768
+ view.off({
2769
+ // 移除click事件上一个指定的函数
2770
+ "click": clickFunction,
2771
+ // 移除double-click上所有指定的函数
2772
+ "double-click": undefined
2773
+ }, view)</code></pre>
2774
+
2775
+
2776
+
2777
+ </div>
2778
+
2779
+ <div class="member">
2780
+
2781
+
2782
+
2783
+ <h4 class="name" id="on">
2784
+ <a class="href-link" href="#on">#</a>
2785
+
2786
+ <span class="code-name" id="on" style="font-size:30px">
2787
+
2788
+ on<span class="signature">(types<span class="signature-attributes">opt</span>, fn<span class="signature-attributes">opt</span>, context<span class="signature-attributes">opt</span>)</span>
2789
+
2790
+ </span>
2791
+ </h4>
2792
+
2793
+
2794
+
2795
+ <div class="description">
2796
+ <p>注册一个新的监听事件;<br/>
2797
+ 示例如下:<br/>
2798
+ <a href='#event1'>[1、注册一个事件]</a><br/>
2799
+ <a href='#event2'>[2、一次注册多个事件 - 同一个回调函数]</a><br/>
2800
+ <a href='#event3'>[3、一次注册多个事件 - 分别指回调应函数]</a><br/>
2801
+ <a href='#event4'>[4、当types为字符串时 - 指定上下文]</a><br/>
2802
+ <a href='#event5'>[5、当types为对象时 - 指定上下文]</a><br/></p>
2803
+ </div>
2804
+
2805
+
2806
+
2807
+
2808
+
2809
+
2810
+
2811
+
2812
+
2813
+
2814
+ <h4>参数</h4>
2815
+
2816
+ <div class="table-container">
2817
+ <table class="params table">
2818
+ <thead>
2819
+ <tr>
2820
+
2821
+ <th>名称</th>
2822
+
2823
+
2824
+ <th>类型</th>
2825
+
2826
+
2827
+ <th style="min-width: 100px;">默认值</th>
2828
+
2829
+
2830
+ <th class="last">描述</th>
2831
+ </tr>
2832
+ </thead>
2833
+
2834
+ <tbody>
2835
+
2836
+
2837
+
2838
+ <tr class="deep-level-0">
2839
+
2840
+ <td class="name"><code>types</code></td>
2841
+
2842
+
2843
+ <td class="type">
2844
+
2845
+
2846
+ <span class="param-type">
2847
+
2848
+ String
2849
+
2850
+ </span>
2851
+ |
2852
+
2853
+ <span class="param-type">
2854
+
2855
+ Object
2856
+
2857
+ </span>
2858
+
2859
+
2860
+
2861
+
2862
+ </td>
2863
+
2864
+
2865
+ <td class="default">
2866
+
2867
+ null
2868
+
2869
+ </td>
2870
+
2871
+
2872
+ <td class="description last"><p>事件类型<br/>
2873
+ 当types为字符串时,可以定义单个或多个事件,单个事件:&quot;click&quot;,多个事件:以空格分割:&quot;click double-click&quot;;<br/>
2874
+ 当types为对象时,使用如下方式指定事件:{'click': onClickFun, 'mouse-move': onMouseMoveFun}</p></td>
2875
+ </tr>
2876
+
2877
+
2878
+
2879
+
2880
+
2881
+
2882
+ <tr class="deep-level-0">
2883
+
2884
+ <td class="name"><code>fn</code></td>
2885
+
2886
+
2887
+ <td class="type">
2888
+
2889
+
2890
+ <span class="param-type">
2891
+
2892
+ function
2893
+
2894
+ </span>
2895
+
2896
+
2897
+
2898
+
2899
+ </td>
2900
+
2901
+
2902
+ <td class="default">
2903
+
2904
+ null
2905
+
2906
+ </td>
2907
+
2908
+
2909
+ <td class="description last"><p>事件回调函数</p></td>
2910
+ </tr>
2911
+
2912
+
2913
+
2914
+
2915
+
2916
+
2917
+ <tr class="deep-level-0">
2918
+
2919
+ <td class="name"><code>context</code></td>
2920
+
2921
+
2922
+ <td class="type">
2923
+
2924
+
2925
+ <span class="param-type">
2926
+
2927
+ Object
2928
+
2929
+ </span>
2930
+
2931
+
2932
+
2933
+
2934
+ </td>
2935
+
2936
+
2937
+ <td class="default">
2938
+
2939
+ null
2940
+
2941
+ </td>
2942
+
2943
+
2944
+ <td class="description last"><p>事件回调函数的this关键字将指向的对象</p></td>
2945
+ </tr>
2946
+
2947
+
2948
+
2949
+
2950
+ </tbody>
2951
+ </table>
2952
+ </div>
2953
+
2954
+
2955
+
2956
+
2957
+
2958
+
2959
+ <dl class="details">
2960
+
2961
+
2962
+
2963
+
2964
+
2965
+
2966
+ <dt class="inherited-from">Inherited From:</dt>
2967
+ <dd class="inherited-from"><ul class="dummy"><li>
2968
+ <a goto="on" link="Evented.html" onclick="getTypeHTML(event)" class="mapgis-link-name" title="Evented#on" Evented.html#on>Evented#on</a>
2969
+ </li></ul></dd>
2970
+
2971
+
2972
+
2973
+
2974
+
2975
+
2976
+
2977
+
2978
+
2979
+
2980
+
2981
+
2982
+
2983
+
2984
+
2985
+
2986
+
2987
+
2988
+
2989
+
2990
+
2991
+
2992
+
2993
+
2994
+
2995
+
2996
+ </dl>
2997
+
2998
+
2999
+
3000
+
3001
+
3002
+
3003
+
3004
+
3005
+
3006
+
3007
+
3008
+
3009
+
3010
+
3011
+
3012
+
3013
+
3014
+
3015
+ <div class='columns method-parameter'>
3016
+ <div class="column is-2"><label>返回值</label></div>
3017
+ <div class="column is-10">
3018
+
3019
+
3020
+
3021
+ <div class="columns">
3022
+
3023
+ <div class='param-desc column is-7'><p>当前实例</p></div>
3024
+
3025
+
3026
+ <div class='column is-5 has-text-left'>
3027
+ <label>类型: </label>
3028
+
3029
+ <span class="param-type">
3030
+
3031
+ Object
3032
+
3033
+ </span>
3034
+
3035
+
3036
+
3037
+ </div>
3038
+
3039
+ </div>
3040
+
3041
+
3042
+ </div>
3043
+ </div>
3044
+
3045
+
3046
+
3047
+
3048
+
3049
+
3050
+ <h5>示例</h5>
3051
+
3052
+ <p class="code-caption"><h5 id='event1'>注册一个事件</h5></p>
3053
+
3054
+
3055
+ <pre class="prettyprint"><code>// 初始化一个点击事件回调函数
3056
+ const clickFunction = function (event) {
3057
+ console.log("点击事件:", event)
3058
+ }
3059
+ // 调用MapView或SceneView的on方法注册一个点击事件
3060
+ view.on('click', clickFunction)</code></pre>
3061
+
3062
+
3063
+ <p class="code-caption"><h5 id='event2'>一次注册多个事件 - 同一个回调函数</h5></p>
3064
+
3065
+
3066
+ <pre class="prettyprint"><code>// 初始化一个事件回调函数
3067
+ const eventFunction = function (event) {
3068
+ console.log("事件:", event)
3069
+ }
3070
+
3071
+ // 调用MapView或SceneView的on方法注册多个事件
3072
+ // 多个事件类型使用同一个回调函数
3073
+ view.on('click right-click-down', eventFunction)</code></pre>
3074
+
3075
+
3076
+ <p class="code-caption"><h5 id='event3'>一次注册多个事件 - 分别指回调应函数</h5></p>
3077
+
3078
+
3079
+ <pre class="prettyprint"><code>// 初始化一个左键点击事件回调函数
3080
+ const clickFunction = function (event) {
3081
+ console.log("click事件:", event)
3082
+ }
3083
+
3084
+ // 初始化一个右键按下事件回调函数
3085
+ const rightClickFunction = function (event) {
3086
+ console.log("right-click-down事件:", event)
3087
+ }
3088
+
3089
+ // 调用MapView或SceneView的on方法注册多个事件
3090
+ // 每一个事件类型,使用单独的回调函数
3091
+ // 注意使用此种方式,一种类型的事件仅能指定一个回调函数
3092
+ view.on({
3093
+ "click": clickFunction,
3094
+ "right-click-down": rightClickFunction
3095
+ })</code></pre>
3096
+
3097
+
3098
+ <p class="code-caption"><h5 id='event4'>指定上下文 - types类型为字符串</h5></p>
3099
+
3100
+
3101
+ <pre class="prettyprint"><code>// 初始化一个点击事件回调函数
3102
+ const clickFunction = function (event) {
3103
+ console.log("点击事件:", event)
3104
+ console.log("上下文对象:", this)
3105
+ }
3106
+ // 调用MapView或SceneView的on方法注册一个点击事件
3107
+ // 指定view为回调函数的上下文对象
3108
+ view.on('click', clickFunction, view)</code></pre>
3109
+
3110
+
3111
+ <p class="code-caption"><h5 id='event5'>指定上下文 - types类型为对象</h5></p>
3112
+
3113
+
3114
+ <pre class="prettyprint"><code>// 初始化一个点击事件回调函数
3115
+ const clickFunction = function (event) {
3116
+ console.log("点击事件:", event)
3117
+ console.log("上下文对象:", this)
3118
+ }
3119
+ // 调用MapView或SceneView的on方法注册一个点击事件
3120
+ // 指定view为回调函数的上下文对象
3121
+ view.on({
3122
+ "click": clickFunction,
3123
+ "right-click-down": clickFunction
3124
+ }, view)</code></pre>
3125
+
3126
+
3127
+
3128
+ </div>
3129
+
3130
+ <div class="member">
3131
+
3132
+
3133
+
3134
+ <h4 class="name" id="reset">
3135
+ <a class="href-link" href="#reset">#</a>
3136
+
3137
+ <span class="code-name" id="reset" style="font-size:30px">
3138
+
3139
+ reset<span class="signature">()</span>
3140
+
3141
+ </span>
3142
+ </h4>
3143
+
3144
+
3145
+
3146
+ <div class="description">
3147
+ <p>重置视角到子图层外包盒处</p>
3148
+ </div>
3149
+
3150
+
3151
+
3152
+
3153
+
3154
+
3155
+
3156
+
3157
+
3158
+
3159
+
3160
+
3161
+
3162
+
3163
+ <dl class="details">
3164
+
3165
+
3166
+
3167
+
3168
+
3169
+
3170
+
3171
+
3172
+
3173
+
3174
+
3175
+
3176
+
3177
+
3178
+
3179
+
3180
+
3181
+
3182
+
3183
+
3184
+
3185
+
3186
+
3187
+
3188
+
3189
+
3190
+
3191
+
3192
+
3193
+
3194
+
3195
+ </dl>
3196
+
3197
+
3198
+
3199
+
3200
+
3201
+
3202
+
3203
+
3204
+
3205
+
3206
+
3207
+
3208
+
3209
+
3210
+
3211
+
3212
+
3213
+
3214
+
3215
+
3216
+
3217
+
3218
+
3219
+ </div>
3220
+
3221
+ <div class="member">
3222
+
3223
+
3224
+
3225
+ <h4 class="name" id="toJSON">
3226
+ <a class="href-link" href="#toJSON">#</a>
3227
+
3228
+ <span class="code-name" id="toJSON" style="font-size:30px">
3229
+
3230
+ toJSON<span class="signature">()</span>
3231
+
3232
+ </span>
3233
+ </h4>
3234
+
3235
+
3236
+
3237
+ <div class="description">
3238
+ <p>将对象转为json对象</p>
3239
+ </div>
3240
+
3241
+
3242
+
3243
+
3244
+
3245
+
3246
+
3247
+
3248
+
3249
+
3250
+
3251
+
3252
+
3253
+
3254
+ <dl class="details">
3255
+
3256
+
3257
+
3258
+
3259
+
3260
+
3261
+
3262
+
3263
+ <dt class="tag-overrides">Overrides:</dt>
3264
+ <dd class="tag-overrides"><ul class="dummy"><li>
3265
+ <a class="mapgis-link-name" title="SubLayer#toJSON" SubLayer.html#toJSON>SubLayer#toJSON</a>
3266
+ </li></ul></dd>
3267
+
3268
+
3269
+
3270
+
3271
+
3272
+
3273
+
3274
+
3275
+
3276
+
3277
+
3278
+
3279
+
3280
+
3281
+
3282
+
3283
+
3284
+
3285
+
3286
+
3287
+
3288
+
3289
+
3290
+
3291
+ </dl>
3292
+
3293
+
3294
+
3295
+
3296
+
3297
+
3298
+
3299
+
3300
+
3301
+
3302
+
3303
+
3304
+
3305
+
3306
+
3307
+
3308
+
3309
+
3310
+ <div class='columns method-parameter'>
3311
+ <div class="column is-2"><label>返回值</label></div>
3312
+ <div class="column is-10">
3313
+
3314
+
3315
+
3316
+ <div class="columns">
3317
+
3318
+ <div class='param-desc column is-7'><p>json对象</p></div>
3319
+
3320
+
3321
+ <div class='column is-5 has-text-left'>
3322
+ <label>类型: </label>
3323
+
3324
+ <span class="param-type">
3325
+
3326
+ Object
3327
+
3328
+ </span>
3329
+
3330
+
3331
+
3332
+ </div>
3333
+
3334
+ </div>
3335
+
3336
+
3337
+ </div>
3338
+ </div>
3339
+
3340
+
3341
+
3342
+
3343
+
3344
+
3345
+ </div>
3346
+
3347
+ </div>
3348
+ </div>
3349
+
3350
+
3351
+
3352
+
3353
+
3354
+ </article>
3355
+
3356
+ </section>