@mapgis/webclient-mapboxgl-plugin 17.0.7 → 17.2.1
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 +14 -36
- package/dist/es5/webclient-common.min.js +15 -4
- package/dist/es5/webclient-mapboxgl-plugin.min.js +1 -1
- package/dist/webclient-mapboxgl-plugin-es6.min.js +1 -1
- package/documention/MapViewMapboxgl.html +1244 -19
- package/documention/Popup.html +7 -5
- package/documention/Screenshot.html +5 -14
- package/documention/SketchEditorMapboxgl.html +108 -50
- package/documention/index.html +7 -7
- package/documention/scripts/sideBar.js +16 -2
- package/package.json +3 -3
|
@@ -39,7 +39,7 @@
|
|
|
39
39
|
参考示例:
|
|
40
40
|
<a href='#MapViewMapboxgl'>[初始化二维场景视图]</a>
|
|
41
41
|
<br>[ES5引入方式]:<br/>
|
|
42
|
-
|
|
42
|
+
zondy.mapboxgl.MapView() <br/>
|
|
43
43
|
[ES6引入方式]:<br/>
|
|
44
44
|
import { MapViewMapboxgl } from '@mapgis/webclient-mapboxgl-plugin' <br/></p>
|
|
45
45
|
</div>
|
|
@@ -520,7 +520,7 @@ import { MapViewMapboxgl } from '@mapgis/webclient-mapboxgl-plugin' <br/></p>
|
|
|
520
520
|
|
|
521
521
|
|
|
522
522
|
<pre class="prettyprint"><code>// ES5引入方式
|
|
523
|
-
const { Map, MapViewMapboxgl } =
|
|
523
|
+
const { Map, MapViewMapboxgl } = zondy
|
|
524
524
|
// ES6引入方式
|
|
525
525
|
import { Map, MapViewMapboxgl } from "@mapgis/webclient-mapboxgl-plugin"
|
|
526
526
|
// 初始化图层管理容器
|
|
@@ -581,6 +581,42 @@ const mapView = new MapViewMapboxgl({
|
|
|
581
581
|
</thead>
|
|
582
582
|
<tbody>
|
|
583
583
|
|
|
584
|
+
<tr class="deep-level-0">
|
|
585
|
+
<td class="name"><code><a href="#_spatialReference">_spatialReference</a></code></td>
|
|
586
|
+
<td class="name">
|
|
587
|
+
<code>
|
|
588
|
+
|
|
589
|
+
<span class="param-type">
|
|
590
|
+
|
|
591
|
+
SpatialReference
|
|
592
|
+
|
|
593
|
+
</span>
|
|
594
|
+
|
|
595
|
+
|
|
596
|
+
|
|
597
|
+
</code>
|
|
598
|
+
</td>
|
|
599
|
+
<td class="name"><code><p>视图空间参考系</p></code></td>
|
|
600
|
+
</tr>
|
|
601
|
+
|
|
602
|
+
<tr class="deep-level-0">
|
|
603
|
+
<td class="name"><code><a href="#center">center</a></code></td>
|
|
604
|
+
<td class="name">
|
|
605
|
+
<code>
|
|
606
|
+
|
|
607
|
+
<span class="param-type">
|
|
608
|
+
|
|
609
|
+
Point
|
|
610
|
+
|
|
611
|
+
</span>
|
|
612
|
+
|
|
613
|
+
|
|
614
|
+
|
|
615
|
+
</code>
|
|
616
|
+
</td>
|
|
617
|
+
<td class="name"><code><p>地图视图中心点</p></code></td>
|
|
618
|
+
</tr>
|
|
619
|
+
|
|
584
620
|
<tr class="deep-level-0">
|
|
585
621
|
<td class="name"><code><a href="#engineType">engineType</a></code></td>
|
|
586
622
|
<td class="name">
|
|
@@ -599,6 +635,204 @@ const mapView = new MapViewMapboxgl({
|
|
|
599
635
|
<td class="name"><code><p>引擎类型,为'mapboxgl'</p></code></td>
|
|
600
636
|
</tr>
|
|
601
637
|
|
|
638
|
+
<tr class="deep-level-0">
|
|
639
|
+
<td class="name"><code><a href="#extent">extent</a></code></td>
|
|
640
|
+
<td class="name">
|
|
641
|
+
<code>
|
|
642
|
+
|
|
643
|
+
<span class="param-type">
|
|
644
|
+
|
|
645
|
+
Extent
|
|
646
|
+
|
|
647
|
+
</span>
|
|
648
|
+
|
|
649
|
+
|
|
650
|
+
|
|
651
|
+
</code>
|
|
652
|
+
</td>
|
|
653
|
+
<td class="name"><code><p>地图视图可视范围</p></code></td>
|
|
654
|
+
</tr>
|
|
655
|
+
|
|
656
|
+
<tr class="deep-level-0">
|
|
657
|
+
<td class="name"><code><a href="#fullExtent">fullExtent</a></code></td>
|
|
658
|
+
<td class="name">
|
|
659
|
+
<code>
|
|
660
|
+
|
|
661
|
+
<span class="param-type">
|
|
662
|
+
|
|
663
|
+
Extent
|
|
664
|
+
|
|
665
|
+
</span>
|
|
666
|
+
|
|
667
|
+
|
|
668
|
+
|
|
669
|
+
</code>
|
|
670
|
+
</td>
|
|
671
|
+
<td class="name"><code><p>地图视图最大显示范围。用户不设置时,将地图范围作为地图视图的最大显示范围,用户设置时采用用户设置的。地图视图初始化时,会根据此范围计算地图视图的最小比例尺,当瓦片数据的最大比例尺小于此比例尺时,无法显示。在相同视图大小下,fullExtent越大,地图视图的最小比例尺越小。</p></code></td>
|
|
672
|
+
</tr>
|
|
673
|
+
|
|
674
|
+
<tr class="deep-level-0">
|
|
675
|
+
<td class="name"><code><a href="#height">height</a></code></td>
|
|
676
|
+
<td class="name">
|
|
677
|
+
<code>
|
|
678
|
+
|
|
679
|
+
<span class="param-type">
|
|
680
|
+
|
|
681
|
+
Number
|
|
682
|
+
|
|
683
|
+
</span>
|
|
684
|
+
|
|
685
|
+
|
|
686
|
+
|
|
687
|
+
</code>
|
|
688
|
+
</td>
|
|
689
|
+
<td class="name"><code><p>地图视图高度</p></code></td>
|
|
690
|
+
</tr>
|
|
691
|
+
|
|
692
|
+
<tr class="deep-level-0">
|
|
693
|
+
<td class="name"><code><a href="#maxScale">maxScale</a></code></td>
|
|
694
|
+
<td class="name">
|
|
695
|
+
<code>
|
|
696
|
+
|
|
697
|
+
<span class="param-type">
|
|
698
|
+
|
|
699
|
+
Number
|
|
700
|
+
|
|
701
|
+
</span>
|
|
702
|
+
|
|
703
|
+
|
|
704
|
+
|
|
705
|
+
</code>
|
|
706
|
+
</td>
|
|
707
|
+
<td class="name"><code><p>地图视图最大比例尺</p></code></td>
|
|
708
|
+
</tr>
|
|
709
|
+
|
|
710
|
+
<tr class="deep-level-0">
|
|
711
|
+
<td class="name"><code><a href="#minScale">minScale</a></code></td>
|
|
712
|
+
<td class="name">
|
|
713
|
+
<code>
|
|
714
|
+
|
|
715
|
+
<span class="param-type">
|
|
716
|
+
|
|
717
|
+
Number
|
|
718
|
+
|
|
719
|
+
</span>
|
|
720
|
+
|
|
721
|
+
|
|
722
|
+
|
|
723
|
+
</code>
|
|
724
|
+
</td>
|
|
725
|
+
<td class="name"><code><p>地图视图最小比例尺</p></code></td>
|
|
726
|
+
</tr>
|
|
727
|
+
|
|
728
|
+
<tr class="deep-level-0">
|
|
729
|
+
<td class="name"><code><a href="#popup">popup</a></code></td>
|
|
730
|
+
<td class="name">
|
|
731
|
+
<code>
|
|
732
|
+
|
|
733
|
+
<span class="param-type">
|
|
734
|
+
|
|
735
|
+
<a link="Popup.html" onclick="getTypeHTML(event)" class="mapgis-link-name" title="Popup" Popup.html>Popup</a>
|
|
736
|
+
|
|
737
|
+
</span>
|
|
738
|
+
|
|
739
|
+
|
|
740
|
+
|
|
741
|
+
</code>
|
|
742
|
+
</td>
|
|
743
|
+
<td class="name"><code><p>地图弹框popup</p></code></td>
|
|
744
|
+
</tr>
|
|
745
|
+
|
|
746
|
+
<tr class="deep-level-0">
|
|
747
|
+
<td class="name"><code><a href="#scale">scale</a></code></td>
|
|
748
|
+
<td class="name">
|
|
749
|
+
<code>
|
|
750
|
+
|
|
751
|
+
<span class="param-type">
|
|
752
|
+
|
|
753
|
+
Number
|
|
754
|
+
|
|
755
|
+
</span>
|
|
756
|
+
|
|
757
|
+
|
|
758
|
+
|
|
759
|
+
</code>
|
|
760
|
+
</td>
|
|
761
|
+
<td class="name"><code><p>地图视图比例尺</p></code></td>
|
|
762
|
+
</tr>
|
|
763
|
+
|
|
764
|
+
<tr class="deep-level-0">
|
|
765
|
+
<td class="name"><code><a href="#spatialReferenceLocked">spatialReferenceLocked</a></code></td>
|
|
766
|
+
<td class="name">
|
|
767
|
+
<code>
|
|
768
|
+
|
|
769
|
+
<span class="param-type">
|
|
770
|
+
|
|
771
|
+
Boolean
|
|
772
|
+
|
|
773
|
+
</span>
|
|
774
|
+
|
|
775
|
+
|
|
776
|
+
|
|
777
|
+
</code>
|
|
778
|
+
</td>
|
|
779
|
+
<td class="name"><code><p>是否锁定视图空间参考系</p></code></td>
|
|
780
|
+
</tr>
|
|
781
|
+
|
|
782
|
+
<tr class="deep-level-0">
|
|
783
|
+
<td class="name"><code><a href="#stationary">stationary</a></code></td>
|
|
784
|
+
<td class="name">
|
|
785
|
+
<code>
|
|
786
|
+
|
|
787
|
+
<span class="param-type">
|
|
788
|
+
|
|
789
|
+
Boolean
|
|
790
|
+
|
|
791
|
+
</span>
|
|
792
|
+
|
|
793
|
+
|
|
794
|
+
|
|
795
|
+
</code>
|
|
796
|
+
</td>
|
|
797
|
+
<td class="name"><code><p>试图是否静止</p></code></td>
|
|
798
|
+
</tr>
|
|
799
|
+
|
|
800
|
+
<tr class="deep-level-0">
|
|
801
|
+
<td class="name"><code><a href="#width">width</a></code></td>
|
|
802
|
+
<td class="name">
|
|
803
|
+
<code>
|
|
804
|
+
|
|
805
|
+
<span class="param-type">
|
|
806
|
+
|
|
807
|
+
Number
|
|
808
|
+
|
|
809
|
+
</span>
|
|
810
|
+
|
|
811
|
+
|
|
812
|
+
|
|
813
|
+
</code>
|
|
814
|
+
</td>
|
|
815
|
+
<td class="name"><code><p>地图视图宽度</p></code></td>
|
|
816
|
+
</tr>
|
|
817
|
+
|
|
818
|
+
<tr class="deep-level-0">
|
|
819
|
+
<td class="name"><code><a href="#zoom">zoom</a></code></td>
|
|
820
|
+
<td class="name">
|
|
821
|
+
<code>
|
|
822
|
+
|
|
823
|
+
<span class="param-type">
|
|
824
|
+
|
|
825
|
+
Number
|
|
826
|
+
|
|
827
|
+
</span>
|
|
828
|
+
|
|
829
|
+
|
|
830
|
+
|
|
831
|
+
</code>
|
|
832
|
+
</td>
|
|
833
|
+
<td class="name"><code><p>地图层级</p></code></td>
|
|
834
|
+
</tr>
|
|
835
|
+
|
|
602
836
|
</tbody>
|
|
603
837
|
</table>
|
|
604
838
|
</div>
|
|
@@ -612,7 +846,7 @@ const mapView = new MapViewMapboxgl({
|
|
|
612
846
|
|
|
613
847
|
<span class="param-type">
|
|
614
848
|
|
|
615
|
-
|
|
849
|
+
SpatialReference
|
|
616
850
|
|
|
617
851
|
</span>
|
|
618
852
|
|
|
@@ -620,15 +854,15 @@ const mapView = new MapViewMapboxgl({
|
|
|
620
854
|
|
|
621
855
|
</span>
|
|
622
856
|
|
|
623
|
-
<h4 class="name" id="
|
|
624
|
-
<a class="href-link" href="#
|
|
857
|
+
<h4 class="name" id="_spatialReference">
|
|
858
|
+
<a class="href-link" href="#_spatialReference">#</a>
|
|
625
859
|
|
|
626
860
|
|
|
627
861
|
<span class='tag'>readonly</span>
|
|
628
862
|
|
|
629
863
|
|
|
630
864
|
<span class="code-name">
|
|
631
|
-
|
|
865
|
+
_spatialReference
|
|
632
866
|
</span>
|
|
633
867
|
|
|
634
868
|
</h4>
|
|
@@ -637,7 +871,998 @@ const mapView = new MapViewMapboxgl({
|
|
|
637
871
|
|
|
638
872
|
|
|
639
873
|
<div class="description">
|
|
640
|
-
<p
|
|
874
|
+
<p>视图空间参考系</p>
|
|
875
|
+
</div>
|
|
876
|
+
|
|
877
|
+
|
|
878
|
+
|
|
879
|
+
|
|
880
|
+
|
|
881
|
+
<dl class="details">
|
|
882
|
+
|
|
883
|
+
|
|
884
|
+
|
|
885
|
+
|
|
886
|
+
|
|
887
|
+
|
|
888
|
+
|
|
889
|
+
|
|
890
|
+
|
|
891
|
+
|
|
892
|
+
|
|
893
|
+
|
|
894
|
+
|
|
895
|
+
|
|
896
|
+
|
|
897
|
+
|
|
898
|
+
|
|
899
|
+
|
|
900
|
+
|
|
901
|
+
|
|
902
|
+
|
|
903
|
+
|
|
904
|
+
|
|
905
|
+
|
|
906
|
+
|
|
907
|
+
|
|
908
|
+
|
|
909
|
+
|
|
910
|
+
|
|
911
|
+
|
|
912
|
+
|
|
913
|
+
</dl>
|
|
914
|
+
|
|
915
|
+
|
|
916
|
+
|
|
917
|
+
|
|
918
|
+
|
|
919
|
+
</div>
|
|
920
|
+
|
|
921
|
+
<div class="member">
|
|
922
|
+
|
|
923
|
+
<span class="method-parameter is-pulled-right">
|
|
924
|
+
<label>类型:</label>
|
|
925
|
+
|
|
926
|
+
<span class="param-type">
|
|
927
|
+
|
|
928
|
+
Point
|
|
929
|
+
|
|
930
|
+
</span>
|
|
931
|
+
|
|
932
|
+
|
|
933
|
+
|
|
934
|
+
</span>
|
|
935
|
+
|
|
936
|
+
<h4 class="name" id="center">
|
|
937
|
+
<a class="href-link" href="#center">#</a>
|
|
938
|
+
|
|
939
|
+
<span class="code-name">
|
|
940
|
+
center
|
|
941
|
+
</span>
|
|
942
|
+
|
|
943
|
+
</h4>
|
|
944
|
+
|
|
945
|
+
|
|
946
|
+
|
|
947
|
+
|
|
948
|
+
<div class="description">
|
|
949
|
+
<p>地图视图中心点</p>
|
|
950
|
+
</div>
|
|
951
|
+
|
|
952
|
+
|
|
953
|
+
|
|
954
|
+
|
|
955
|
+
|
|
956
|
+
<dl class="details">
|
|
957
|
+
|
|
958
|
+
|
|
959
|
+
|
|
960
|
+
|
|
961
|
+
|
|
962
|
+
|
|
963
|
+
|
|
964
|
+
|
|
965
|
+
|
|
966
|
+
|
|
967
|
+
|
|
968
|
+
|
|
969
|
+
|
|
970
|
+
|
|
971
|
+
|
|
972
|
+
|
|
973
|
+
|
|
974
|
+
|
|
975
|
+
|
|
976
|
+
|
|
977
|
+
|
|
978
|
+
|
|
979
|
+
|
|
980
|
+
|
|
981
|
+
|
|
982
|
+
|
|
983
|
+
|
|
984
|
+
|
|
985
|
+
|
|
986
|
+
|
|
987
|
+
|
|
988
|
+
</dl>
|
|
989
|
+
|
|
990
|
+
|
|
991
|
+
|
|
992
|
+
|
|
993
|
+
|
|
994
|
+
</div>
|
|
995
|
+
|
|
996
|
+
<div class="member">
|
|
997
|
+
|
|
998
|
+
<span class="method-parameter is-pulled-right">
|
|
999
|
+
<label>类型:</label>
|
|
1000
|
+
|
|
1001
|
+
<span class="param-type">
|
|
1002
|
+
|
|
1003
|
+
Object
|
|
1004
|
+
|
|
1005
|
+
</span>
|
|
1006
|
+
|
|
1007
|
+
|
|
1008
|
+
|
|
1009
|
+
</span>
|
|
1010
|
+
|
|
1011
|
+
<h4 class="name" id="engineType">
|
|
1012
|
+
<a class="href-link" href="#engineType">#</a>
|
|
1013
|
+
|
|
1014
|
+
|
|
1015
|
+
<span class='tag'>readonly</span>
|
|
1016
|
+
|
|
1017
|
+
|
|
1018
|
+
<span class="code-name">
|
|
1019
|
+
engineType
|
|
1020
|
+
</span>
|
|
1021
|
+
|
|
1022
|
+
</h4>
|
|
1023
|
+
|
|
1024
|
+
|
|
1025
|
+
|
|
1026
|
+
|
|
1027
|
+
<div class="description">
|
|
1028
|
+
<p>引擎类型,为'mapboxgl'</p>
|
|
1029
|
+
</div>
|
|
1030
|
+
|
|
1031
|
+
|
|
1032
|
+
|
|
1033
|
+
|
|
1034
|
+
|
|
1035
|
+
<dl class="details">
|
|
1036
|
+
|
|
1037
|
+
|
|
1038
|
+
|
|
1039
|
+
|
|
1040
|
+
|
|
1041
|
+
|
|
1042
|
+
|
|
1043
|
+
|
|
1044
|
+
|
|
1045
|
+
|
|
1046
|
+
|
|
1047
|
+
|
|
1048
|
+
|
|
1049
|
+
|
|
1050
|
+
|
|
1051
|
+
|
|
1052
|
+
|
|
1053
|
+
|
|
1054
|
+
|
|
1055
|
+
|
|
1056
|
+
|
|
1057
|
+
|
|
1058
|
+
|
|
1059
|
+
|
|
1060
|
+
|
|
1061
|
+
|
|
1062
|
+
|
|
1063
|
+
|
|
1064
|
+
|
|
1065
|
+
|
|
1066
|
+
|
|
1067
|
+
</dl>
|
|
1068
|
+
|
|
1069
|
+
|
|
1070
|
+
|
|
1071
|
+
|
|
1072
|
+
|
|
1073
|
+
</div>
|
|
1074
|
+
|
|
1075
|
+
<div class="member">
|
|
1076
|
+
|
|
1077
|
+
<span class="method-parameter is-pulled-right">
|
|
1078
|
+
<label>类型:</label>
|
|
1079
|
+
|
|
1080
|
+
<span class="param-type">
|
|
1081
|
+
|
|
1082
|
+
Extent
|
|
1083
|
+
|
|
1084
|
+
</span>
|
|
1085
|
+
|
|
1086
|
+
|
|
1087
|
+
|
|
1088
|
+
</span>
|
|
1089
|
+
|
|
1090
|
+
<h4 class="name" id="extent">
|
|
1091
|
+
<a class="href-link" href="#extent">#</a>
|
|
1092
|
+
|
|
1093
|
+
<span class="code-name">
|
|
1094
|
+
extent
|
|
1095
|
+
</span>
|
|
1096
|
+
|
|
1097
|
+
</h4>
|
|
1098
|
+
|
|
1099
|
+
|
|
1100
|
+
|
|
1101
|
+
|
|
1102
|
+
<div class="description">
|
|
1103
|
+
<p>地图视图可视范围</p>
|
|
1104
|
+
</div>
|
|
1105
|
+
|
|
1106
|
+
|
|
1107
|
+
|
|
1108
|
+
|
|
1109
|
+
|
|
1110
|
+
<dl class="details">
|
|
1111
|
+
|
|
1112
|
+
|
|
1113
|
+
|
|
1114
|
+
|
|
1115
|
+
|
|
1116
|
+
|
|
1117
|
+
|
|
1118
|
+
|
|
1119
|
+
|
|
1120
|
+
|
|
1121
|
+
|
|
1122
|
+
|
|
1123
|
+
|
|
1124
|
+
|
|
1125
|
+
|
|
1126
|
+
|
|
1127
|
+
|
|
1128
|
+
|
|
1129
|
+
|
|
1130
|
+
|
|
1131
|
+
|
|
1132
|
+
|
|
1133
|
+
|
|
1134
|
+
|
|
1135
|
+
|
|
1136
|
+
|
|
1137
|
+
|
|
1138
|
+
|
|
1139
|
+
|
|
1140
|
+
|
|
1141
|
+
|
|
1142
|
+
</dl>
|
|
1143
|
+
|
|
1144
|
+
|
|
1145
|
+
|
|
1146
|
+
|
|
1147
|
+
|
|
1148
|
+
</div>
|
|
1149
|
+
|
|
1150
|
+
<div class="member">
|
|
1151
|
+
|
|
1152
|
+
<span class="method-parameter is-pulled-right">
|
|
1153
|
+
<label>类型:</label>
|
|
1154
|
+
|
|
1155
|
+
<span class="param-type">
|
|
1156
|
+
|
|
1157
|
+
Extent
|
|
1158
|
+
|
|
1159
|
+
</span>
|
|
1160
|
+
|
|
1161
|
+
|
|
1162
|
+
|
|
1163
|
+
</span>
|
|
1164
|
+
|
|
1165
|
+
<h4 class="name" id="fullExtent">
|
|
1166
|
+
<a class="href-link" href="#fullExtent">#</a>
|
|
1167
|
+
|
|
1168
|
+
<span class="code-name">
|
|
1169
|
+
fullExtent
|
|
1170
|
+
</span>
|
|
1171
|
+
|
|
1172
|
+
</h4>
|
|
1173
|
+
|
|
1174
|
+
|
|
1175
|
+
|
|
1176
|
+
|
|
1177
|
+
<div class="description">
|
|
1178
|
+
<p>地图视图最大显示范围。用户不设置时,将地图范围作为地图视图的最大显示范围,用户设置时采用用户设置的。地图视图初始化时,会根据此范围计算地图视图的最小比例尺,当瓦片数据的最大比例尺小于此比例尺时,无法显示。在相同视图大小下,fullExtent越大,地图视图的最小比例尺越小。</p>
|
|
1179
|
+
</div>
|
|
1180
|
+
|
|
1181
|
+
|
|
1182
|
+
|
|
1183
|
+
|
|
1184
|
+
|
|
1185
|
+
<dl class="details">
|
|
1186
|
+
|
|
1187
|
+
|
|
1188
|
+
|
|
1189
|
+
|
|
1190
|
+
|
|
1191
|
+
|
|
1192
|
+
|
|
1193
|
+
|
|
1194
|
+
|
|
1195
|
+
|
|
1196
|
+
|
|
1197
|
+
|
|
1198
|
+
|
|
1199
|
+
|
|
1200
|
+
|
|
1201
|
+
|
|
1202
|
+
|
|
1203
|
+
|
|
1204
|
+
|
|
1205
|
+
|
|
1206
|
+
|
|
1207
|
+
|
|
1208
|
+
|
|
1209
|
+
|
|
1210
|
+
|
|
1211
|
+
|
|
1212
|
+
|
|
1213
|
+
|
|
1214
|
+
|
|
1215
|
+
|
|
1216
|
+
|
|
1217
|
+
</dl>
|
|
1218
|
+
|
|
1219
|
+
|
|
1220
|
+
|
|
1221
|
+
|
|
1222
|
+
|
|
1223
|
+
</div>
|
|
1224
|
+
|
|
1225
|
+
<div class="member">
|
|
1226
|
+
|
|
1227
|
+
<span class="method-parameter is-pulled-right">
|
|
1228
|
+
<label>类型:</label>
|
|
1229
|
+
|
|
1230
|
+
<span class="param-type">
|
|
1231
|
+
|
|
1232
|
+
Number
|
|
1233
|
+
|
|
1234
|
+
</span>
|
|
1235
|
+
|
|
1236
|
+
|
|
1237
|
+
|
|
1238
|
+
</span>
|
|
1239
|
+
|
|
1240
|
+
<h4 class="name" id="height">
|
|
1241
|
+
<a class="href-link" href="#height">#</a>
|
|
1242
|
+
|
|
1243
|
+
|
|
1244
|
+
<span class='tag'>readonly</span>
|
|
1245
|
+
|
|
1246
|
+
|
|
1247
|
+
<span class="code-name">
|
|
1248
|
+
height
|
|
1249
|
+
</span>
|
|
1250
|
+
|
|
1251
|
+
</h4>
|
|
1252
|
+
|
|
1253
|
+
|
|
1254
|
+
|
|
1255
|
+
|
|
1256
|
+
<div class="description">
|
|
1257
|
+
<p>地图视图高度</p>
|
|
1258
|
+
</div>
|
|
1259
|
+
|
|
1260
|
+
|
|
1261
|
+
|
|
1262
|
+
|
|
1263
|
+
|
|
1264
|
+
<dl class="details">
|
|
1265
|
+
|
|
1266
|
+
|
|
1267
|
+
|
|
1268
|
+
|
|
1269
|
+
|
|
1270
|
+
|
|
1271
|
+
|
|
1272
|
+
|
|
1273
|
+
|
|
1274
|
+
|
|
1275
|
+
|
|
1276
|
+
|
|
1277
|
+
|
|
1278
|
+
|
|
1279
|
+
|
|
1280
|
+
|
|
1281
|
+
|
|
1282
|
+
|
|
1283
|
+
|
|
1284
|
+
|
|
1285
|
+
|
|
1286
|
+
|
|
1287
|
+
|
|
1288
|
+
|
|
1289
|
+
|
|
1290
|
+
|
|
1291
|
+
|
|
1292
|
+
|
|
1293
|
+
|
|
1294
|
+
|
|
1295
|
+
|
|
1296
|
+
</dl>
|
|
1297
|
+
|
|
1298
|
+
|
|
1299
|
+
|
|
1300
|
+
|
|
1301
|
+
|
|
1302
|
+
</div>
|
|
1303
|
+
|
|
1304
|
+
<div class="member">
|
|
1305
|
+
|
|
1306
|
+
<span class="method-parameter is-pulled-right">
|
|
1307
|
+
<label>类型:</label>
|
|
1308
|
+
|
|
1309
|
+
<span class="param-type">
|
|
1310
|
+
|
|
1311
|
+
Number
|
|
1312
|
+
|
|
1313
|
+
</span>
|
|
1314
|
+
|
|
1315
|
+
|
|
1316
|
+
|
|
1317
|
+
</span>
|
|
1318
|
+
|
|
1319
|
+
<h4 class="name" id="maxScale">
|
|
1320
|
+
<a class="href-link" href="#maxScale">#</a>
|
|
1321
|
+
|
|
1322
|
+
<span class="code-name">
|
|
1323
|
+
maxScale
|
|
1324
|
+
</span>
|
|
1325
|
+
|
|
1326
|
+
</h4>
|
|
1327
|
+
|
|
1328
|
+
|
|
1329
|
+
|
|
1330
|
+
|
|
1331
|
+
<div class="description">
|
|
1332
|
+
<p>地图视图最大比例尺</p>
|
|
1333
|
+
</div>
|
|
1334
|
+
|
|
1335
|
+
|
|
1336
|
+
|
|
1337
|
+
|
|
1338
|
+
|
|
1339
|
+
<dl class="details">
|
|
1340
|
+
|
|
1341
|
+
|
|
1342
|
+
|
|
1343
|
+
|
|
1344
|
+
|
|
1345
|
+
|
|
1346
|
+
|
|
1347
|
+
|
|
1348
|
+
|
|
1349
|
+
|
|
1350
|
+
|
|
1351
|
+
|
|
1352
|
+
|
|
1353
|
+
|
|
1354
|
+
|
|
1355
|
+
|
|
1356
|
+
|
|
1357
|
+
|
|
1358
|
+
|
|
1359
|
+
|
|
1360
|
+
|
|
1361
|
+
|
|
1362
|
+
|
|
1363
|
+
|
|
1364
|
+
|
|
1365
|
+
|
|
1366
|
+
|
|
1367
|
+
|
|
1368
|
+
|
|
1369
|
+
|
|
1370
|
+
|
|
1371
|
+
</dl>
|
|
1372
|
+
|
|
1373
|
+
|
|
1374
|
+
|
|
1375
|
+
|
|
1376
|
+
|
|
1377
|
+
</div>
|
|
1378
|
+
|
|
1379
|
+
<div class="member">
|
|
1380
|
+
|
|
1381
|
+
<span class="method-parameter is-pulled-right">
|
|
1382
|
+
<label>类型:</label>
|
|
1383
|
+
|
|
1384
|
+
<span class="param-type">
|
|
1385
|
+
|
|
1386
|
+
Number
|
|
1387
|
+
|
|
1388
|
+
</span>
|
|
1389
|
+
|
|
1390
|
+
|
|
1391
|
+
|
|
1392
|
+
</span>
|
|
1393
|
+
|
|
1394
|
+
<h4 class="name" id="minScale">
|
|
1395
|
+
<a class="href-link" href="#minScale">#</a>
|
|
1396
|
+
|
|
1397
|
+
<span class="code-name">
|
|
1398
|
+
minScale
|
|
1399
|
+
</span>
|
|
1400
|
+
|
|
1401
|
+
</h4>
|
|
1402
|
+
|
|
1403
|
+
|
|
1404
|
+
|
|
1405
|
+
|
|
1406
|
+
<div class="description">
|
|
1407
|
+
<p>地图视图最小比例尺</p>
|
|
1408
|
+
</div>
|
|
1409
|
+
|
|
1410
|
+
|
|
1411
|
+
|
|
1412
|
+
|
|
1413
|
+
|
|
1414
|
+
<dl class="details">
|
|
1415
|
+
|
|
1416
|
+
|
|
1417
|
+
|
|
1418
|
+
|
|
1419
|
+
|
|
1420
|
+
|
|
1421
|
+
|
|
1422
|
+
|
|
1423
|
+
|
|
1424
|
+
|
|
1425
|
+
|
|
1426
|
+
|
|
1427
|
+
|
|
1428
|
+
|
|
1429
|
+
|
|
1430
|
+
|
|
1431
|
+
|
|
1432
|
+
|
|
1433
|
+
|
|
1434
|
+
|
|
1435
|
+
|
|
1436
|
+
|
|
1437
|
+
|
|
1438
|
+
|
|
1439
|
+
|
|
1440
|
+
|
|
1441
|
+
|
|
1442
|
+
|
|
1443
|
+
|
|
1444
|
+
|
|
1445
|
+
|
|
1446
|
+
</dl>
|
|
1447
|
+
|
|
1448
|
+
|
|
1449
|
+
|
|
1450
|
+
|
|
1451
|
+
|
|
1452
|
+
</div>
|
|
1453
|
+
|
|
1454
|
+
<div class="member">
|
|
1455
|
+
|
|
1456
|
+
<span class="method-parameter is-pulled-right">
|
|
1457
|
+
<label>类型:</label>
|
|
1458
|
+
|
|
1459
|
+
<span class="param-type">
|
|
1460
|
+
|
|
1461
|
+
<a link="Popup.html" onclick="getTypeHTML(event)" class="mapgis-link-name" title="Popup" Popup.html>Popup</a>
|
|
1462
|
+
|
|
1463
|
+
</span>
|
|
1464
|
+
|
|
1465
|
+
|
|
1466
|
+
|
|
1467
|
+
</span>
|
|
1468
|
+
|
|
1469
|
+
<h4 class="name" id="popup">
|
|
1470
|
+
<a class="href-link" href="#popup">#</a>
|
|
1471
|
+
|
|
1472
|
+
<span class="code-name">
|
|
1473
|
+
popup
|
|
1474
|
+
</span>
|
|
1475
|
+
|
|
1476
|
+
</h4>
|
|
1477
|
+
|
|
1478
|
+
|
|
1479
|
+
|
|
1480
|
+
|
|
1481
|
+
<div class="description">
|
|
1482
|
+
<p>地图弹框popup</p>
|
|
1483
|
+
</div>
|
|
1484
|
+
|
|
1485
|
+
|
|
1486
|
+
|
|
1487
|
+
|
|
1488
|
+
|
|
1489
|
+
<dl class="details">
|
|
1490
|
+
|
|
1491
|
+
|
|
1492
|
+
|
|
1493
|
+
|
|
1494
|
+
|
|
1495
|
+
|
|
1496
|
+
|
|
1497
|
+
|
|
1498
|
+
|
|
1499
|
+
|
|
1500
|
+
|
|
1501
|
+
|
|
1502
|
+
|
|
1503
|
+
|
|
1504
|
+
|
|
1505
|
+
|
|
1506
|
+
|
|
1507
|
+
|
|
1508
|
+
|
|
1509
|
+
|
|
1510
|
+
|
|
1511
|
+
|
|
1512
|
+
|
|
1513
|
+
|
|
1514
|
+
|
|
1515
|
+
|
|
1516
|
+
|
|
1517
|
+
|
|
1518
|
+
|
|
1519
|
+
|
|
1520
|
+
|
|
1521
|
+
</dl>
|
|
1522
|
+
|
|
1523
|
+
|
|
1524
|
+
|
|
1525
|
+
|
|
1526
|
+
|
|
1527
|
+
</div>
|
|
1528
|
+
|
|
1529
|
+
<div class="member">
|
|
1530
|
+
|
|
1531
|
+
<span class="method-parameter is-pulled-right">
|
|
1532
|
+
<label>类型:</label>
|
|
1533
|
+
|
|
1534
|
+
<span class="param-type">
|
|
1535
|
+
|
|
1536
|
+
Number
|
|
1537
|
+
|
|
1538
|
+
</span>
|
|
1539
|
+
|
|
1540
|
+
|
|
1541
|
+
|
|
1542
|
+
</span>
|
|
1543
|
+
|
|
1544
|
+
<h4 class="name" id="scale">
|
|
1545
|
+
<a class="href-link" href="#scale">#</a>
|
|
1546
|
+
|
|
1547
|
+
<span class="code-name">
|
|
1548
|
+
scale
|
|
1549
|
+
</span>
|
|
1550
|
+
|
|
1551
|
+
</h4>
|
|
1552
|
+
|
|
1553
|
+
|
|
1554
|
+
|
|
1555
|
+
|
|
1556
|
+
<div class="description">
|
|
1557
|
+
<p>地图视图比例尺</p>
|
|
1558
|
+
</div>
|
|
1559
|
+
|
|
1560
|
+
|
|
1561
|
+
|
|
1562
|
+
|
|
1563
|
+
|
|
1564
|
+
<dl class="details">
|
|
1565
|
+
|
|
1566
|
+
|
|
1567
|
+
|
|
1568
|
+
|
|
1569
|
+
|
|
1570
|
+
|
|
1571
|
+
|
|
1572
|
+
|
|
1573
|
+
|
|
1574
|
+
|
|
1575
|
+
|
|
1576
|
+
|
|
1577
|
+
|
|
1578
|
+
|
|
1579
|
+
|
|
1580
|
+
|
|
1581
|
+
|
|
1582
|
+
|
|
1583
|
+
|
|
1584
|
+
|
|
1585
|
+
|
|
1586
|
+
|
|
1587
|
+
|
|
1588
|
+
|
|
1589
|
+
|
|
1590
|
+
|
|
1591
|
+
|
|
1592
|
+
|
|
1593
|
+
|
|
1594
|
+
|
|
1595
|
+
|
|
1596
|
+
</dl>
|
|
1597
|
+
|
|
1598
|
+
|
|
1599
|
+
|
|
1600
|
+
|
|
1601
|
+
|
|
1602
|
+
</div>
|
|
1603
|
+
|
|
1604
|
+
<div class="member">
|
|
1605
|
+
|
|
1606
|
+
<span class="method-parameter is-pulled-right">
|
|
1607
|
+
<label>类型:</label>
|
|
1608
|
+
|
|
1609
|
+
<span class="param-type">
|
|
1610
|
+
|
|
1611
|
+
Boolean
|
|
1612
|
+
|
|
1613
|
+
</span>
|
|
1614
|
+
|
|
1615
|
+
|
|
1616
|
+
|
|
1617
|
+
</span>
|
|
1618
|
+
|
|
1619
|
+
<h4 class="name" id="spatialReferenceLocked">
|
|
1620
|
+
<a class="href-link" href="#spatialReferenceLocked">#</a>
|
|
1621
|
+
|
|
1622
|
+
<span class="code-name">
|
|
1623
|
+
spatialReferenceLocked
|
|
1624
|
+
</span>
|
|
1625
|
+
|
|
1626
|
+
</h4>
|
|
1627
|
+
|
|
1628
|
+
|
|
1629
|
+
|
|
1630
|
+
|
|
1631
|
+
<div class="description">
|
|
1632
|
+
<p>是否锁定视图空间参考系</p>
|
|
1633
|
+
</div>
|
|
1634
|
+
|
|
1635
|
+
|
|
1636
|
+
|
|
1637
|
+
|
|
1638
|
+
|
|
1639
|
+
<dl class="details">
|
|
1640
|
+
|
|
1641
|
+
|
|
1642
|
+
|
|
1643
|
+
|
|
1644
|
+
|
|
1645
|
+
|
|
1646
|
+
|
|
1647
|
+
|
|
1648
|
+
|
|
1649
|
+
|
|
1650
|
+
|
|
1651
|
+
|
|
1652
|
+
|
|
1653
|
+
|
|
1654
|
+
|
|
1655
|
+
|
|
1656
|
+
|
|
1657
|
+
|
|
1658
|
+
|
|
1659
|
+
|
|
1660
|
+
|
|
1661
|
+
|
|
1662
|
+
|
|
1663
|
+
|
|
1664
|
+
|
|
1665
|
+
|
|
1666
|
+
|
|
1667
|
+
|
|
1668
|
+
|
|
1669
|
+
|
|
1670
|
+
|
|
1671
|
+
</dl>
|
|
1672
|
+
|
|
1673
|
+
|
|
1674
|
+
|
|
1675
|
+
|
|
1676
|
+
|
|
1677
|
+
</div>
|
|
1678
|
+
|
|
1679
|
+
<div class="member">
|
|
1680
|
+
|
|
1681
|
+
<span class="method-parameter is-pulled-right">
|
|
1682
|
+
<label>类型:</label>
|
|
1683
|
+
|
|
1684
|
+
<span class="param-type">
|
|
1685
|
+
|
|
1686
|
+
Boolean
|
|
1687
|
+
|
|
1688
|
+
</span>
|
|
1689
|
+
|
|
1690
|
+
|
|
1691
|
+
|
|
1692
|
+
</span>
|
|
1693
|
+
|
|
1694
|
+
<h4 class="name" id="stationary">
|
|
1695
|
+
<a class="href-link" href="#stationary">#</a>
|
|
1696
|
+
|
|
1697
|
+
|
|
1698
|
+
<span class='tag'>readonly</span>
|
|
1699
|
+
|
|
1700
|
+
|
|
1701
|
+
<span class="code-name">
|
|
1702
|
+
stationary
|
|
1703
|
+
</span>
|
|
1704
|
+
|
|
1705
|
+
</h4>
|
|
1706
|
+
|
|
1707
|
+
|
|
1708
|
+
|
|
1709
|
+
|
|
1710
|
+
<div class="description">
|
|
1711
|
+
<p>试图是否静止</p>
|
|
1712
|
+
</div>
|
|
1713
|
+
|
|
1714
|
+
|
|
1715
|
+
|
|
1716
|
+
|
|
1717
|
+
|
|
1718
|
+
<dl class="details">
|
|
1719
|
+
|
|
1720
|
+
|
|
1721
|
+
|
|
1722
|
+
|
|
1723
|
+
|
|
1724
|
+
|
|
1725
|
+
|
|
1726
|
+
|
|
1727
|
+
|
|
1728
|
+
|
|
1729
|
+
|
|
1730
|
+
|
|
1731
|
+
|
|
1732
|
+
|
|
1733
|
+
|
|
1734
|
+
|
|
1735
|
+
|
|
1736
|
+
|
|
1737
|
+
|
|
1738
|
+
|
|
1739
|
+
|
|
1740
|
+
|
|
1741
|
+
|
|
1742
|
+
|
|
1743
|
+
|
|
1744
|
+
|
|
1745
|
+
|
|
1746
|
+
|
|
1747
|
+
|
|
1748
|
+
|
|
1749
|
+
|
|
1750
|
+
</dl>
|
|
1751
|
+
|
|
1752
|
+
|
|
1753
|
+
|
|
1754
|
+
|
|
1755
|
+
|
|
1756
|
+
</div>
|
|
1757
|
+
|
|
1758
|
+
<div class="member">
|
|
1759
|
+
|
|
1760
|
+
<span class="method-parameter is-pulled-right">
|
|
1761
|
+
<label>类型:</label>
|
|
1762
|
+
|
|
1763
|
+
<span class="param-type">
|
|
1764
|
+
|
|
1765
|
+
Number
|
|
1766
|
+
|
|
1767
|
+
</span>
|
|
1768
|
+
|
|
1769
|
+
|
|
1770
|
+
|
|
1771
|
+
</span>
|
|
1772
|
+
|
|
1773
|
+
<h4 class="name" id="width">
|
|
1774
|
+
<a class="href-link" href="#width">#</a>
|
|
1775
|
+
|
|
1776
|
+
|
|
1777
|
+
<span class='tag'>readonly</span>
|
|
1778
|
+
|
|
1779
|
+
|
|
1780
|
+
<span class="code-name">
|
|
1781
|
+
width
|
|
1782
|
+
</span>
|
|
1783
|
+
|
|
1784
|
+
</h4>
|
|
1785
|
+
|
|
1786
|
+
|
|
1787
|
+
|
|
1788
|
+
|
|
1789
|
+
<div class="description">
|
|
1790
|
+
<p>地图视图宽度</p>
|
|
1791
|
+
</div>
|
|
1792
|
+
|
|
1793
|
+
|
|
1794
|
+
|
|
1795
|
+
|
|
1796
|
+
|
|
1797
|
+
<dl class="details">
|
|
1798
|
+
|
|
1799
|
+
|
|
1800
|
+
|
|
1801
|
+
|
|
1802
|
+
|
|
1803
|
+
|
|
1804
|
+
|
|
1805
|
+
|
|
1806
|
+
|
|
1807
|
+
|
|
1808
|
+
|
|
1809
|
+
|
|
1810
|
+
|
|
1811
|
+
|
|
1812
|
+
|
|
1813
|
+
|
|
1814
|
+
|
|
1815
|
+
|
|
1816
|
+
|
|
1817
|
+
|
|
1818
|
+
|
|
1819
|
+
|
|
1820
|
+
|
|
1821
|
+
|
|
1822
|
+
|
|
1823
|
+
|
|
1824
|
+
|
|
1825
|
+
|
|
1826
|
+
|
|
1827
|
+
|
|
1828
|
+
|
|
1829
|
+
</dl>
|
|
1830
|
+
|
|
1831
|
+
|
|
1832
|
+
|
|
1833
|
+
|
|
1834
|
+
|
|
1835
|
+
</div>
|
|
1836
|
+
|
|
1837
|
+
<div class="member">
|
|
1838
|
+
|
|
1839
|
+
<span class="method-parameter is-pulled-right">
|
|
1840
|
+
<label>类型:</label>
|
|
1841
|
+
|
|
1842
|
+
<span class="param-type">
|
|
1843
|
+
|
|
1844
|
+
Number
|
|
1845
|
+
|
|
1846
|
+
</span>
|
|
1847
|
+
|
|
1848
|
+
|
|
1849
|
+
|
|
1850
|
+
</span>
|
|
1851
|
+
|
|
1852
|
+
<h4 class="name" id="zoom">
|
|
1853
|
+
<a class="href-link" href="#zoom">#</a>
|
|
1854
|
+
|
|
1855
|
+
<span class="code-name">
|
|
1856
|
+
zoom
|
|
1857
|
+
</span>
|
|
1858
|
+
|
|
1859
|
+
</h4>
|
|
1860
|
+
|
|
1861
|
+
|
|
1862
|
+
|
|
1863
|
+
|
|
1864
|
+
<div class="description">
|
|
1865
|
+
<p>地图层级</p>
|
|
641
1866
|
</div>
|
|
642
1867
|
|
|
643
1868
|
|
|
@@ -712,7 +1937,7 @@ const mapView = new MapViewMapboxgl({
|
|
|
712
1937
|
|
|
713
1938
|
<span class="param-type">
|
|
714
1939
|
|
|
715
|
-
|
|
1940
|
+
MapView
|
|
716
1941
|
|
|
717
1942
|
</span>
|
|
718
1943
|
|
|
@@ -1106,7 +2331,7 @@ const mapView = new MapViewMapboxgl({
|
|
|
1106
2331
|
|
|
1107
2332
|
<span class="param-type">
|
|
1108
2333
|
|
|
1109
|
-
|
|
2334
|
+
MapView
|
|
1110
2335
|
|
|
1111
2336
|
</span>
|
|
1112
2337
|
|
|
@@ -1350,7 +2575,7 @@ const mapView = new MapViewMapboxgl({
|
|
|
1350
2575
|
|
|
1351
2576
|
|
|
1352
2577
|
<pre class="prettyprint"><code>// ES5引入方式
|
|
1353
|
-
const { Map, MapViewMapboxgl } =
|
|
2578
|
+
const { Map, MapViewMapboxgl } = zondy
|
|
1354
2579
|
// ES6引入方式
|
|
1355
2580
|
import { Map, MapViewMapboxgl } from "@mapgis/webclient-mapboxgl-plugin"
|
|
1356
2581
|
// 初始化图层管理容器
|
|
@@ -1375,8 +2600,8 @@ mapView.flyTo({
|
|
|
1375
2600
|
|
|
1376
2601
|
|
|
1377
2602
|
<pre class="prettyprint"><code>// ES5引入方式
|
|
1378
|
-
const { Map, MapViewMapboxgl } =
|
|
1379
|
-
const { Extent } =
|
|
2603
|
+
const { Map, MapViewMapboxgl } = zondy
|
|
2604
|
+
const { Extent } = zondy.Geometry
|
|
1380
2605
|
// ES6引入方式
|
|
1381
2606
|
import { Map, MapViewMapboxgl, Extent } from "@mapgis/webclient-mapboxgl-plugin"
|
|
1382
2607
|
// 初始化图层管理容器
|
|
@@ -1403,11 +2628,11 @@ mapView.flyTo({
|
|
|
1403
2628
|
|
|
1404
2629
|
|
|
1405
2630
|
<pre class="prettyprint"><code>// ES5引入方式
|
|
1406
|
-
const { IGSMapImageLayer } =
|
|
2631
|
+
const { IGSMapImageLayer } = zondy.Layer
|
|
1407
2632
|
// ES6引入方式
|
|
1408
2633
|
import { IGSMapImageLayer } from "@mapgis/webclient-mapboxgl-plugin"
|
|
1409
2634
|
const igsMapImageLayer = new IGSMapImageLayer({
|
|
1410
|
-
url: 'http://
|
|
2635
|
+
url: 'http://192.168.82.89:8089/igs/rest/services/Map/Hubei4326/MapServer'
|
|
1411
2636
|
});
|
|
1412
2637
|
map.add(igsMapImageLayer);
|
|
1413
2638
|
// 图层加载完毕
|
|
@@ -2414,7 +3639,7 @@ igsMapImageLayer.on('layer-view-created', function (result) {
|
|
|
2414
3639
|
|
|
2415
3640
|
|
|
2416
3641
|
<pre class="prettyprint"><code>// ES5引入方式
|
|
2417
|
-
const { Map, MapView } =
|
|
3642
|
+
const { Map, MapView } = zondy
|
|
2418
3643
|
// ES6引入方式
|
|
2419
3644
|
import { Map, MapViewMapboxgl as MapView } from "@mapgis/webclient-mapboxgl-plugin"
|
|
2420
3645
|
// 初始化图层管理容器
|
|
@@ -2439,8 +3664,8 @@ mapView.goTo({
|
|
|
2439
3664
|
|
|
2440
3665
|
|
|
2441
3666
|
<pre class="prettyprint"><code>// ES5引入方式
|
|
2442
|
-
const { Map, MapView } =
|
|
2443
|
-
const { Extent, Circle } =
|
|
3667
|
+
const { Map, MapView } = zondy
|
|
3668
|
+
const { Extent, Circle } = zondy.Geometry
|
|
2444
3669
|
// ES6引入方式
|
|
2445
3670
|
import { Map, MapViewMapboxgl as MapView } from "@mapgis/webclient-mapboxgl-plugin"
|
|
2446
3671
|
// 初始化图层管理容器
|
|
@@ -3140,8 +4365,8 @@ const result = this.mapView.hitTest({x:1100,y:600})</code></pre>
|
|
|
3140
4365
|
|
|
3141
4366
|
|
|
3142
4367
|
<pre class="prettyprint"><code>// ES5引入方式
|
|
3143
|
-
const { Map, MapView } =
|
|
3144
|
-
const { PictureFormat } =
|
|
4368
|
+
const { Map, MapView } = zondy
|
|
4369
|
+
const { PictureFormat } = zondy.Enum
|
|
3145
4370
|
// ES6引入方式
|
|
3146
4371
|
import { Map, MapView } from "@mapgis/webclient-mapboxgl-plugin"
|
|
3147
4372
|
import { PictureFormat } from "@mapgis/webclient-common"
|