@mapgis/webclient-common 17.0.2 → 17.0.4

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 (260) hide show
  1. package/README.md +18 -1
  2. package/dist/es5/webclient-common.min.js +2 -2
  3. package/dist/webclient-common-es6.min.js +2 -2
  4. package/documention/AddressServer.html +87 -33
  5. package/documention/ArcGISFeatureServer.html +122 -34
  6. package/documention/ArcGISGeometryServer.html +101 -36
  7. package/documention/ArcGISMapImageLayer.html +110 -40
  8. package/documention/ArcGISMapImageSubLayer.html +50 -24
  9. package/documention/ArcGISMapServer.html +96 -32
  10. package/documention/ArcGISTileLayer.html +238 -112
  11. package/documention/ArcGISVectorTileLayer.html +142 -66
  12. package/documention/ArcGISVectorTileServer.html +62 -29
  13. package/documention/BaseRenderer.html +11 -5
  14. package/documention/BaseServer.html +47 -16
  15. package/documention/BaseView.html +251 -78
  16. package/documention/Basemap.html +88 -41
  17. package/documention/Callout3D.html +18 -12
  18. package/documention/Cesium3DTilesCacheLayer.html +218 -98
  19. package/documention/Cesium3DTilesServer.html +59 -27
  20. package/documention/CheckUtil.html +80 -20
  21. package/documention/Circle.html +79 -36
  22. package/documention/ClassBreakClusterInfo.html +26 -12
  23. package/documention/ClassBreakInfo.html +37 -14
  24. package/documention/ClassBreakRenderer.html +65 -28
  25. package/documention/ClusterInfo.html +40 -18
  26. package/documention/ClusterRenderer.html +70 -32
  27. package/documention/Collection.html +362 -134
  28. package/documention/CollectionFlattener.html +28 -6
  29. package/documention/Color.html +68 -27
  30. package/documention/ColorMaterial.html +25 -12
  31. package/documention/ColorStop.html +29 -13
  32. package/documention/ColorVariable.html +21 -11
  33. package/documention/Config.html +6 -1
  34. package/documention/CursorChangeEventInfo.html +5 -2
  35. package/documention/EchartsLayer.html +17 -7
  36. package/documention/Edges3D.html +26 -12
  37. package/documention/ElevationInfo.html +20 -11
  38. package/documention/Evented.html +12 -2
  39. package/documention/Extent.html +142 -66
  40. package/documention/ExtrudeSymbol3DLayer.html +53 -27
  41. package/documention/Feature.html +63 -29
  42. package/documention/FeatureExpressionInfo.html +11 -5
  43. package/documention/FeatureLayer.html +236 -107
  44. package/documention/FeatureServer.html +185 -43
  45. package/documention/FeatureSet.html +39 -18
  46. package/documention/FillSymbol.html +31 -17
  47. package/documention/FillSymbol3DLayer.html +37 -19
  48. package/documention/FillSymbol3DOutline.html +33 -16
  49. package/documention/Font.html +37 -14
  50. package/documention/GeoJSONLayer.html +260 -116
  51. package/documention/Geometry.html +73 -28
  52. package/documention/GeometryEngine.html +288 -169
  53. package/documention/GeometryFilter.html +21 -14
  54. package/documention/GeometryServer.html +154 -64
  55. package/documention/GraphicsLayer.html +293 -134
  56. package/documention/GroupLayer.html +257 -118
  57. package/documention/HeatmapColorStop.html +26 -12
  58. package/documention/HeatmapRenderer.html +54 -21
  59. package/documention/IGSFeatureLayer.html +103 -41
  60. package/documention/IGSMapImageLayer.html +159 -68
  61. package/documention/IGSMapImageSubLayer.html +49 -21
  62. package/documention/IGSSceneLayer.html +149 -54
  63. package/documention/IGSSceneSubLayer.html +94 -45
  64. package/documention/IGSTileLayer.html +239 -114
  65. package/documention/IGSVectorTileLayer.html +154 -72
  66. package/documention/IGSVectorTileSubLayer.html +46 -25
  67. package/documention/IconResource.html +20 -9
  68. package/documention/IconSymbol3DLayer.html +70 -38
  69. package/documention/ImageServer.html +89 -31
  70. package/documention/Interceptor.html +4 -0
  71. package/documention/LOD.html +26 -10
  72. package/documention/LabelClass.html +100 -35
  73. package/documention/LabelSymbol3D.html +41 -22
  74. package/documention/Layer.html +220 -85
  75. package/documention/LayerEvent.html +1 -0
  76. package/documention/LayerViewUpdateEvent.html +2 -0
  77. package/documention/LineCallout3D.html +47 -20
  78. package/documention/LineString.html +103 -50
  79. package/documention/LineStyleMarker3D.html +45 -22
  80. package/documention/LineStylePattern3D.html +25 -12
  81. package/documention/LineSymbol.html +27 -13
  82. package/documention/LineSymbol3D.html +24 -13
  83. package/documention/LineSymbol3DLayer.html +70 -38
  84. package/documention/LineSymbolMarker.html +21 -9
  85. package/documention/Log.html +3 -3
  86. package/documention/M3DModelCacheLayer.html +237 -108
  87. package/documention/M3DServer.html +74 -28
  88. package/documention/Map.html +127 -53
  89. package/documention/MapGISTextSymbol.html +173 -79
  90. package/documention/MapImageLayer.html +542 -204
  91. package/documention/MapServer.html +173 -55
  92. package/documention/MapVLayer.html +122 -60
  93. package/documention/MapView.html +293 -116
  94. package/documention/MarkerSymbol.html +35 -15
  95. package/documention/MoveEventInfo.html +5 -2
  96. package/documention/MultiLineString.html +126 -60
  97. package/documention/MultiPoint.html +100 -48
  98. package/documention/MultiPolygon.html +93 -44
  99. package/documention/OGCLayer.html +215 -99
  100. package/documention/ObjectSymbol3DLayer.html +85 -38
  101. package/documention/OpacityStop.html +26 -10
  102. package/documention/OpacityVariable.html +21 -11
  103. package/documention/OutStatistic.html +15 -5
  104. package/documention/OverlayLayer.html +214 -99
  105. package/documention/PathSymbol3DLayer.html +101 -53
  106. package/documention/PictureFillSymbol.html +59 -24
  107. package/documention/PictureMarkerSymbol.html +48 -19
  108. package/documention/PlotServer.html +101 -38
  109. package/documention/PoiServer.html +65 -27
  110. package/documention/Point.html +100 -47
  111. package/documention/PointSymbol3D.html +41 -22
  112. package/documention/PointSymbol3DOutline.html +28 -13
  113. package/documention/Polygon.html +138 -64
  114. package/documention/PolygonSymbol3D.html +30 -15
  115. package/documention/ProjectInfo.html +12 -0
  116. package/documention/ProjectInfoBySrsID.html +6 -0
  117. package/documention/Projection.html +11 -7
  118. package/documention/RandomRenderer.html +26 -12
  119. package/documention/RankRenderer.html +57 -22
  120. package/documention/RendererInfo.html +135 -9
  121. package/documention/RequestConfig.html +3 -1
  122. package/documention/RequestInterceptor.html +9 -2
  123. package/documention/ResourceServer.html +597 -84
  124. package/documention/ResponseInterceptor.html +9 -2
  125. package/documention/RootServer.html +64 -27
  126. package/documention/ScaleEventInfo.html +5 -2
  127. package/documention/Scene.html +67 -20
  128. package/documention/SceneLayer.html +219 -99
  129. package/documention/SceneServer.html +164 -61
  130. package/documention/SceneView.html +6 -3
  131. package/documention/SecurityServer.html +59 -26
  132. package/documention/SimpleFillSymbol.html +43 -22
  133. package/documention/SimpleLineSymbol.html +55 -24
  134. package/documention/SimpleMarkerSymbol.html +55 -23
  135. package/documention/SimpleRenderer.html +41 -19
  136. package/documention/SizeStop.html +26 -10
  137. package/documention/SizeVariable.html +37 -15
  138. package/documention/SketchBaseDrawTool.html +107 -52
  139. package/documention/SketchCircleDrawTool.html +141 -81
  140. package/documention/SketchEditor.html +209 -102
  141. package/documention/SketchEditorCesium.html +243 -141
  142. package/documention/SketchEditorEvent.html +1 -0
  143. package/documention/SketchEditorToolEventInfo.html +3 -1
  144. package/documention/SketchEditorVideo.html +46 -23
  145. package/documention/SketchEditorVideoBase.html +46 -23
  146. package/documention/SketchExtentDrawTool.html +141 -81
  147. package/documention/SketchFreehandPolygonDrawTool.html +135 -77
  148. package/documention/SketchFreehandPolylineDrawTool.html +139 -79
  149. package/documention/SketchPointDrawTool.html +149 -85
  150. package/documention/SketchPolygonDrawTool.html +274 -153
  151. package/documention/SketchPolylineDrawTool.html +236 -120
  152. package/documention/SketchStage.html +24 -15
  153. package/documention/SketchStyle.html +107 -60
  154. package/documention/SketchTopologyTool.html +6 -3
  155. package/documention/SpatialReference.html +50 -20
  156. package/documention/StylePattern3D.html +25 -12
  157. package/documention/SubLayer.html +55 -21
  158. package/documention/Symbol.html +25 -11
  159. package/documention/Symbol3D.html +11 -5
  160. package/documention/Symbol3DLayer.html +21 -13
  161. package/documention/Symbol3DVerticalOffset.html +33 -16
  162. package/documention/TerrainCacheLayer.html +214 -99
  163. package/documention/TerrainServer.html +54 -26
  164. package/documention/TextHalo.html +26 -12
  165. package/documention/TextSymbol.html +110 -47
  166. package/documention/TextSymbol3DLayer.html +85 -44
  167. package/documention/ThemeServer.html +73 -30
  168. package/documention/TileInfo.html +26 -11
  169. package/documention/TileLayer.html +230 -108
  170. package/documention/TileMatrixSet.html +53 -23
  171. package/documention/TileServer.html +49 -25
  172. package/documention/UniqueValueClusterInfo.html +26 -12
  173. package/documention/UniqueValueInfo.html +34 -14
  174. package/documention/UniqueValueRenderer.html +62 -27
  175. package/documention/UnknownLayer.html +219 -101
  176. package/documention/UpdateContent.html +17 -4
  177. package/documention/VectorTileGroupSubLayer.html +2209 -0
  178. package/documention/VectorTileLayer.html +314 -138
  179. package/documention/VectorTileServer.html +58 -27
  180. package/documention/VectorTileSubLayer.html +62 -31
  181. package/documention/VertexChangeEventInfo.html +5 -2
  182. package/documention/VideoMapView.html +77 -21
  183. package/documention/VideoMetaData.html +22 -8
  184. package/documention/VideoPixelCoordTransforms.html +17 -10
  185. package/documention/VideoRegistrationParam.html +19 -9
  186. package/documention/VisualVariable.html +29 -11
  187. package/documention/WCSServer.html +49 -25
  188. package/documention/WFSLayer.html +262 -120
  189. package/documention/WFSServer.html +59 -28
  190. package/documention/WMSLayer.html +305 -142
  191. package/documention/WMSServer.html +53 -26
  192. package/documention/WMSSubLayer.html +63 -30
  193. package/documention/WMTSLayer.html +269 -130
  194. package/documention/WMTSServer.html +52 -26
  195. package/documention/WMTSStyle.html +30 -12
  196. package/documention/WMTSSubLayer.html +242 -111
  197. package/documention/WPSServer.html +49 -25
  198. package/documention/WaterSymbol3DLayer.html +50 -26
  199. package/documention/WebTileLayer.html +258 -120
  200. package/documention/WorkFlowServer.html +89 -32
  201. package/documention/WorkFlowServer600227.html +131 -44
  202. package/documention/WorkFlowServer600228.html +126 -45
  203. package/documention/WorkFlowServer600229.html +131 -44
  204. package/documention/WorkFlowServer600230.html +131 -44
  205. package/documention/WorkFlowServer600231.html +147 -48
  206. package/documention/WorkFlowServer600232.html +131 -44
  207. package/documention/WorkFlowServer600233.html +133 -49
  208. package/documention/WorkFlowServer600235.html +107 -38
  209. package/documention/WorkFlowServer600237.html +140 -52
  210. package/documention/WorkFlowServer600238.html +135 -46
  211. package/documention/WorkFlowServer600239.html +119 -41
  212. package/documention/WorkFlowServer600307.html +132 -49
  213. package/documention/WorkFlowServer600308.html +47 -13
  214. package/documention/WorkFlowServer600309.html +131 -44
  215. package/documention/WorkFlowServer600314.html +135 -45
  216. package/documention/WorkFlowServer600334.html +131 -44
  217. package/documention/WorkFlowServer600336.html +123 -42
  218. package/documention/WorkFlowServer600340.html +159 -51
  219. package/documention/WorkFlowServer600354.html +127 -43
  220. package/documention/WorkFlowServer600368.html +111 -39
  221. package/documention/WorkFlowServer600369.html +123 -42
  222. package/documention/WorkFlowServer600370.html +119 -41
  223. package/documention/Zondy.Object.CAttDataRow.html +3 -0
  224. package/documention/Zondy.Object.CAttStruct.html +4 -0
  225. package/documention/global.html +1096 -26
  226. package/documention/index.html +1 -1
  227. package/documention/module-%E4%B8%93%E9%A2%98%E5%9B%BE%E6%9C%8D%E5%8A%A1.CAnnInfo.html +18 -0
  228. package/documention/module-%E4%B8%93%E9%A2%98%E5%9B%BE%E6%9C%8D%E5%8A%A1.CChartTheme.html +4 -0
  229. package/documention/module-%E4%B8%93%E9%A2%98%E5%9B%BE%E6%9C%8D%E5%8A%A1.CChartThemeInfo.html +2 -0
  230. package/documention/module-%E4%B8%93%E9%A2%98%E5%9B%BE%E6%9C%8D%E5%8A%A1.CChartThemeRepresentInfo.html +13 -0
  231. package/documention/module-%E4%B8%93%E9%A2%98%E5%9B%BE%E6%9C%8D%E5%8A%A1.CDotDensityTheme.html +4 -0
  232. package/documention/module-%E4%B8%93%E9%A2%98%E5%9B%BE%E6%9C%8D%E5%8A%A1.CFourColorTheme.html +2 -0
  233. package/documention/module-%E4%B8%93%E9%A2%98%E5%9B%BE%E6%9C%8D%E5%8A%A1.CGraduatedSymbolTheme.html +8 -0
  234. package/documention/module-%E4%B8%93%E9%A2%98%E5%9B%BE%E6%9C%8D%E5%8A%A1.CLinInfo.html +12 -0
  235. package/documention/module-%E4%B8%93%E9%A2%98%E5%9B%BE%E6%9C%8D%E5%8A%A1.CMultiClassTheme.html +5 -0
  236. package/documention/module-%E4%B8%93%E9%A2%98%E5%9B%BE%E6%9C%8D%E5%8A%A1.CPntInfo.html +12 -0
  237. package/documention/module-%E4%B8%93%E9%A2%98%E5%9B%BE%E6%9C%8D%E5%8A%A1.CRandomTheme.html +1 -0
  238. package/documention/module-%E4%B8%93%E9%A2%98%E5%9B%BE%E6%9C%8D%E5%8A%A1.CRangeTheme.html +7 -0
  239. package/documention/module-%E4%B8%93%E9%A2%98%E5%9B%BE%E6%9C%8D%E5%8A%A1.CRangeThemeInfo.html +3 -0
  240. package/documention/module-%E4%B8%93%E9%A2%98%E5%9B%BE%E6%9C%8D%E5%8A%A1.CRegInfo.html +13 -0
  241. package/documention/module-%E4%B8%93%E9%A2%98%E5%9B%BE%E6%9C%8D%E5%8A%A1.CSimpleTheme.html +2 -0
  242. package/documention/module-%E4%B8%93%E9%A2%98%E5%9B%BE%E6%9C%8D%E5%8A%A1.CTheme.html +4 -0
  243. package/documention/module-%E4%B8%93%E9%A2%98%E5%9B%BE%E6%9C%8D%E5%8A%A1.CThemeInfo.html +8 -0
  244. package/documention/module-%E4%B8%93%E9%A2%98%E5%9B%BE%E6%9C%8D%E5%8A%A1.CUniqueTheme.html +6 -0
  245. package/documention/module-%E4%B8%93%E9%A2%98%E5%9B%BE%E6%9C%8D%E5%8A%A1.CUniqueThemeInfo.html +1 -0
  246. package/documention/module-%E4%B8%93%E9%A2%98%E5%9B%BE%E6%9C%8D%E5%8A%A1.ExpInfo.html +3 -0
  247. package/documention/module-%E4%B8%93%E9%A2%98%E5%9B%BE%E6%9C%8D%E5%8A%A1.FolderInfo.html +2 -0
  248. package/documention/module-%E4%B8%93%E9%A2%98%E5%9B%BE%E6%9C%8D%E5%8A%A1.FolderInfoAttribute.html +2 -0
  249. package/documention/module-%E4%B8%93%E9%A2%98%E5%9B%BE%E6%9C%8D%E5%8A%A1.ItemValue.html +4 -0
  250. package/documention/module-%E4%B8%93%E9%A2%98%E5%9B%BE%E6%9C%8D%E5%8A%A1.ThemesInfo.html +2 -0
  251. package/documention/module-ArcGis.ArcGisCircle.html +7 -0
  252. package/documention/module-ArcGis.ArcGisExtent.html +28 -10
  253. package/documention/module-ArcGis.ArcGisMultipoint.html +12 -5
  254. package/documention/module-ArcGis.ArcGisPoint.html +15 -5
  255. package/documention/module-ArcGis.ArcGisPolygon.html +34 -10
  256. package/documention/module-ArcGis.ArcGisPolyline.html +22 -7
  257. package/documention/module-ArcGis.ArcGisSpatialReference.html +7 -1
  258. package/documention/module.exports.html +1 -0
  259. package/documention/scripts/sideBar.js +28 -6
  260. package/package.json +1 -1
@@ -0,0 +1,2209 @@
1
+ <header id="page-title" class="page-title">
2
+
3
+ <span class="page-title-main">类名</span>
4
+ <span class="page-title-sub">VectorTileGroupSubLayer</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="VectorTileGroupSubLayer">
26
+ <a class="href-link" href="#VectorTileGroupSubLayer">#</a>
27
+
28
+ <span class="code-name" id="VectorTileGroupSubLayer" style="font-size:30px">
29
+
30
+ new VectorTileGroupSubLayer<span class="signature">(options)</span>
31
+
32
+ </span>
33
+ </h4>
34
+
35
+
36
+
37
+ <div class="description">
38
+ <p>矢量瓦片子图层的组图层</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" id="options"><code>options</code></td>
77
+
78
+
79
+ <td class="type">
80
+
81
+
82
+ <span class="param-type">Object</span>
83
+
84
+
85
+
86
+
87
+ </td>
88
+
89
+
90
+ <td class="default">
91
+
92
+ </td>
93
+
94
+
95
+ <td class="description last"><p>构造参数</p></td>
96
+ </tr>
97
+
98
+
99
+
100
+
101
+ <tr class="deep-level-1">
102
+
103
+ <td class="name" id="id"><code>id</code></td>
104
+
105
+
106
+ <td class="type">
107
+
108
+
109
+ <span class="param-type">String</span>
110
+
111
+
112
+
113
+
114
+ </td>
115
+
116
+
117
+ <td class="default">
118
+
119
+ </td>
120
+
121
+
122
+ <td class="description last"><p>图层id,不给则生成随机id</p></td>
123
+ </tr>
124
+
125
+
126
+
127
+
128
+ <tr class="deep-level-1">
129
+
130
+ <td class="name" id="layer"><code>layer</code></td>
131
+
132
+
133
+ <td class="type">
134
+
135
+
136
+ <span class="param-type"><a link="Layer.html" onclick="getTypeHTML(event)" class="mapgis-link-name" title="Layer" Layer.html>Layer</a></span>
137
+
138
+
139
+
140
+
141
+ </td>
142
+
143
+
144
+ <td class="default">
145
+
146
+ </td>
147
+
148
+
149
+ <td class="description last"><p>父图层对象</p></td>
150
+ </tr>
151
+
152
+
153
+
154
+
155
+ <tr class="deep-level-1">
156
+
157
+ <td class="name" id="sublayers"><code>sublayers</code></td>
158
+
159
+
160
+ <td class="type">
161
+
162
+
163
+ <span class="param-type">Array</span>
164
+
165
+
166
+
167
+
168
+ </td>
169
+
170
+
171
+ <td class="default">
172
+
173
+ []
174
+
175
+ </td>
176
+
177
+
178
+ <td class="description last"><p>包含的子图层对象</p></td>
179
+ </tr>
180
+
181
+
182
+
183
+
184
+ <tr class="deep-level-1">
185
+
186
+ <td class="name" id="title"><code>title</code></td>
187
+
188
+
189
+ <td class="type">
190
+
191
+
192
+ <span class="param-type">String</span>
193
+
194
+
195
+
196
+
197
+ </td>
198
+
199
+
200
+ <td class="default">
201
+
202
+ </td>
203
+
204
+
205
+ <td class="description last"><p>图层名称</p></td>
206
+ </tr>
207
+
208
+
209
+
210
+
211
+ <tr class="deep-level-1">
212
+
213
+ <td class="name" id="visible"><code>visible</code></td>
214
+
215
+
216
+ <td class="type">
217
+
218
+
219
+ <span class="param-type">Boolean</span>
220
+
221
+
222
+
223
+
224
+ </td>
225
+
226
+
227
+ <td class="default">
228
+
229
+ true
230
+
231
+ </td>
232
+
233
+
234
+ <td class="description last"><p>图层可见性</p></td>
235
+ </tr>
236
+
237
+
238
+
239
+
240
+ <tr class="deep-level-1">
241
+
242
+ <td class="name" id="opacity"><code>opacity</code></td>
243
+
244
+
245
+ <td class="type">
246
+
247
+
248
+ <span class="param-type">Number</span>
249
+
250
+
251
+
252
+
253
+ </td>
254
+
255
+
256
+ <td class="default">
257
+
258
+ 1
259
+
260
+ </td>
261
+
262
+
263
+ <td class="description last"><p>图层透明度</p></td>
264
+ </tr>
265
+
266
+
267
+
268
+
269
+
270
+
271
+
272
+ </tbody>
273
+ </table>
274
+ </div>
275
+
276
+
277
+
278
+
279
+
280
+
281
+ <dl class="details">
282
+
283
+
284
+
285
+
286
+
287
+
288
+
289
+
290
+
291
+
292
+
293
+
294
+
295
+
296
+
297
+
298
+
299
+
300
+
301
+
302
+
303
+
304
+
305
+
306
+
307
+
308
+
309
+
310
+
311
+
312
+
313
+ </dl>
314
+
315
+
316
+
317
+
318
+
319
+
320
+
321
+
322
+
323
+
324
+
325
+
326
+
327
+
328
+
329
+
330
+
331
+
332
+
333
+
334
+
335
+
336
+
337
+
338
+ </div>
339
+ </div>
340
+ </div>
341
+
342
+
343
+ </div>
344
+
345
+
346
+ <h3 class="subsection-title">继承关系</h3>
347
+
348
+
349
+
350
+
351
+ <ul>
352
+ <li><a link="SubLayer.html" onclick="getTypeHTML(event)" class="mapgis-link-name" title="SubLayer" SubLayer.html>SubLayer</a></li>
353
+ </ul>
354
+
355
+
356
+
357
+
358
+
359
+
360
+
361
+
362
+
363
+
364
+
365
+
366
+
367
+
368
+
369
+ <div class='vertical-section'>
370
+ <h3 id='member'>成员变量</h3>
371
+ <h4 style="margin-top: 20px;margin-bottom: 20px;">成员变量概述</h4>
372
+ <div class="table-container">
373
+ <table class="params table">
374
+ <thead>
375
+ <tr>
376
+ <th>名称</th>
377
+ <th>类型</th>
378
+ <th>描述</th>
379
+ </tr>
380
+ </thead>
381
+ <tbody>
382
+
383
+ <tr class="deep-level-0">
384
+ <td class="name"><code><a href="#extendOptions">extendOptions</a></code></td>
385
+ <td class="name">
386
+ <code>
387
+
388
+ <span class="param-type">Object</span>
389
+
390
+
391
+
392
+ </code>
393
+ </td>
394
+ <td class="name"><code><p>初始化图层的额外参数,可以通过该参数传入引擎原生的构造参数</p></code></td>
395
+ </tr>
396
+
397
+ <tr class="deep-level-0">
398
+ <td class="name"><code><a href="#extendProps">extendProps</a></code></td>
399
+ <td class="name">
400
+ <code>
401
+
402
+ <span class="param-type">Object</span>
403
+
404
+
405
+
406
+ </code>
407
+ </td>
408
+ <td class="name"><code><p>初始化当前图层对象上不支持的属性,二次开发用户希望挂在图层对像上的属性可以存储到该属性中</p></code></td>
409
+ </tr>
410
+
411
+ <tr class="deep-level-0">
412
+ <td class="name"><code><a href="#id">id</a></code></td>
413
+ <td class="name">
414
+ <code>
415
+
416
+ <span class="param-type">String</span>
417
+
418
+
419
+
420
+ </code>
421
+ </td>
422
+ <td class="name"><code><p>图层id,不给则生成随机id</p></code></td>
423
+ </tr>
424
+
425
+ <tr class="deep-level-0">
426
+ <td class="name"><code><a href="#layer">layer</a></code></td>
427
+ <td class="name">
428
+ <code>
429
+
430
+ <span class="param-type"><a link="Layer.html" onclick="getTypeHTML(event)" class="mapgis-link-name" title="Layer" Layer.html>Layer</a></span>
431
+
432
+
433
+
434
+ </code>
435
+ </td>
436
+ <td class="name"><code><p>父图层对象</p></code></td>
437
+ </tr>
438
+
439
+ <tr class="deep-level-0">
440
+ <td class="name"><code><a href="#opacity">opacity</a></code></td>
441
+ <td class="name">
442
+ <code>
443
+
444
+ <span class="param-type">Number</span>
445
+
446
+
447
+
448
+ </code>
449
+ </td>
450
+ <td class="name"><code><p>图层透明度</p></code></td>
451
+ </tr>
452
+
453
+ <tr class="deep-level-0">
454
+ <td class="name"><code><a href="#spatialReference">spatialReference</a></code></td>
455
+ <td class="name">
456
+ <code>
457
+
458
+ <span class="param-type"><a link="SpatialReference.html" onclick="getTypeHTML(event)" class="mapgis-link-name" title="SpatialReference" SpatialReference.html>SpatialReference</a></span>
459
+
460
+
461
+
462
+ </code>
463
+ </td>
464
+ <td class="name"><code><p>子图层空间参考系</p></code></td>
465
+ </tr>
466
+
467
+ <tr class="deep-level-0">
468
+ <td class="name"><code><a href="#sublayers">sublayers</a></code></td>
469
+ <td class="name">
470
+ <code>
471
+
472
+ <span class="param-type">Array</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="#title">title</a></code></td>
483
+ <td class="name">
484
+ <code>
485
+
486
+ <span class="param-type">String</span>
487
+
488
+
489
+
490
+ </code>
491
+ </td>
492
+ <td class="name"><code><p>图层名称</p></code></td>
493
+ </tr>
494
+
495
+ <tr class="deep-level-0">
496
+ <td class="name"><code><a href="#visible">visible</a></code></td>
497
+ <td class="name">
498
+ <code>
499
+
500
+ <span class="param-type">Boolean</span>
501
+
502
+
503
+
504
+ </code>
505
+ </td>
506
+ <td class="name"><code><p>图层可见性</p></code></td>
507
+ </tr>
508
+
509
+ </tbody>
510
+ </table>
511
+ </div>
512
+ <h4 style="margin-top: 20px;margin-bottom: 20px;">成员变量详情</h4>
513
+ <div class="members">
514
+
515
+ <div class="member">
516
+
517
+ <span class="method-parameter is-pulled-right">
518
+ <label>类型:</label>
519
+
520
+ <span class="param-type">Object</span>
521
+
522
+
523
+
524
+ </span>
525
+
526
+ <h4 class="name" id="extendOptions">
527
+ <a class="href-link" href="#extendOptions">#</a>
528
+
529
+ <span class="code-name">
530
+ extendOptions
531
+ </span>
532
+
533
+ </h4>
534
+
535
+
536
+
537
+
538
+ <div class="description">
539
+ <p>初始化图层的额外参数,可以通过该参数传入引擎原生的构造参数</p>
540
+ </div>
541
+
542
+
543
+
544
+
545
+
546
+ <dl class="details">
547
+
548
+
549
+
550
+
551
+
552
+
553
+ <dt class="inherited-from">Inherited From:</dt>
554
+ <dd class="inherited-from"><ul class="dummy"><li>
555
+ <a goto="extendOptions" link="SubLayer.html" onclick="getTypeHTML(event)" class="mapgis-link-name" title="SubLayer#extendOptions" SubLayer.html#extendOptions>SubLayer#extendOptions</a>
556
+ </li></ul></dd>
557
+
558
+
559
+
560
+
561
+
562
+
563
+
564
+
565
+
566
+
567
+
568
+
569
+
570
+
571
+
572
+
573
+
574
+
575
+
576
+ <dt class="tag-default">Default Value:</dt>
577
+ <dd class="tag-default"><ul class="dummy">
578
+ <li>{}</li>
579
+ </ul></dd>
580
+
581
+
582
+
583
+
584
+
585
+
586
+
587
+
588
+ </dl>
589
+
590
+
591
+
592
+
593
+
594
+ </div>
595
+
596
+ <div class="member">
597
+
598
+ <span class="method-parameter is-pulled-right">
599
+ <label>类型:</label>
600
+
601
+ <span class="param-type">Object</span>
602
+
603
+
604
+
605
+ </span>
606
+
607
+ <h4 class="name" id="extendProps">
608
+ <a class="href-link" href="#extendProps">#</a>
609
+
610
+ <span class="code-name">
611
+ extendProps
612
+ </span>
613
+
614
+ </h4>
615
+
616
+
617
+
618
+
619
+ <div class="description">
620
+ <p>初始化当前图层对象上不支持的属性,二次开发用户希望挂在图层对像上的属性可以存储到该属性中</p>
621
+ </div>
622
+
623
+
624
+
625
+
626
+
627
+ <dl class="details">
628
+
629
+
630
+
631
+
632
+
633
+
634
+ <dt class="inherited-from">Inherited From:</dt>
635
+ <dd class="inherited-from"><ul class="dummy"><li>
636
+ <a goto="extendProps" link="SubLayer.html" onclick="getTypeHTML(event)" class="mapgis-link-name" title="SubLayer#extendProps" SubLayer.html#extendProps>SubLayer#extendProps</a>
637
+ </li></ul></dd>
638
+
639
+
640
+
641
+
642
+
643
+
644
+
645
+
646
+
647
+
648
+
649
+
650
+
651
+
652
+
653
+
654
+
655
+
656
+
657
+ <dt class="tag-default">Default Value:</dt>
658
+ <dd class="tag-default"><ul class="dummy">
659
+ <li>{}</li>
660
+ </ul></dd>
661
+
662
+
663
+
664
+
665
+
666
+
667
+
668
+
669
+ </dl>
670
+
671
+
672
+
673
+
674
+
675
+ </div>
676
+
677
+ <div class="member">
678
+
679
+ <span class="method-parameter is-pulled-right">
680
+ <label>类型:</label>
681
+
682
+ <span class="param-type">String</span>
683
+
684
+
685
+
686
+ </span>
687
+
688
+ <h4 class="name" id="id">
689
+ <a class="href-link" href="#id">#</a>
690
+
691
+ <span class="code-name">
692
+ id
693
+ </span>
694
+
695
+ </h4>
696
+
697
+
698
+
699
+
700
+ <div class="description">
701
+ <p>图层id,不给则生成随机id</p>
702
+ </div>
703
+
704
+
705
+
706
+
707
+
708
+ <dl class="details">
709
+
710
+
711
+
712
+
713
+
714
+
715
+
716
+
717
+ <dt class="tag-overrides">Overrides:</dt>
718
+ <dd class="tag-overrides"><ul class="dummy"><li>
719
+ <a class="mapgis-link-name" title="SubLayer#id" SubLayer.html#id>SubLayer#id</a>
720
+ </li></ul></dd>
721
+
722
+
723
+
724
+
725
+
726
+
727
+
728
+
729
+
730
+
731
+
732
+
733
+
734
+
735
+
736
+
737
+
738
+
739
+
740
+
741
+
742
+
743
+
744
+
745
+ </dl>
746
+
747
+
748
+
749
+
750
+
751
+ </div>
752
+
753
+ <div class="member">
754
+
755
+ <span class="method-parameter is-pulled-right">
756
+ <label>类型:</label>
757
+
758
+ <span class="param-type"><a link="Layer.html" onclick="getTypeHTML(event)" class="mapgis-link-name" title="Layer" Layer.html>Layer</a></span>
759
+
760
+
761
+
762
+ </span>
763
+
764
+ <h4 class="name" id="layer">
765
+ <a class="href-link" href="#layer">#</a>
766
+
767
+ <span class="code-name">
768
+ layer
769
+ </span>
770
+
771
+ </h4>
772
+
773
+
774
+
775
+
776
+ <div class="description">
777
+ <p>父图层对象</p>
778
+ </div>
779
+
780
+
781
+
782
+
783
+
784
+ <dl class="details">
785
+
786
+
787
+
788
+
789
+
790
+
791
+
792
+
793
+ <dt class="tag-overrides">Overrides:</dt>
794
+ <dd class="tag-overrides"><ul class="dummy"><li>
795
+ <a class="mapgis-link-name" title="SubLayer#layer" SubLayer.html#layer>SubLayer#layer</a>
796
+ </li></ul></dd>
797
+
798
+
799
+
800
+
801
+
802
+
803
+
804
+
805
+
806
+
807
+
808
+
809
+
810
+
811
+
812
+
813
+
814
+
815
+
816
+
817
+
818
+
819
+
820
+
821
+ </dl>
822
+
823
+
824
+
825
+
826
+
827
+ </div>
828
+
829
+ <div class="member">
830
+
831
+ <span class="method-parameter is-pulled-right">
832
+ <label>类型:</label>
833
+
834
+ <span class="param-type">Number</span>
835
+
836
+
837
+
838
+ </span>
839
+
840
+ <h4 class="name" id="opacity">
841
+ <a class="href-link" href="#opacity">#</a>
842
+
843
+ <span class="code-name">
844
+ opacity
845
+ </span>
846
+
847
+ </h4>
848
+
849
+
850
+
851
+
852
+ <div class="description">
853
+ <p>图层透明度</p>
854
+ </div>
855
+
856
+
857
+
858
+
859
+
860
+ <dl class="details">
861
+
862
+
863
+
864
+
865
+
866
+
867
+
868
+
869
+
870
+
871
+
872
+
873
+
874
+
875
+
876
+
877
+
878
+
879
+
880
+
881
+
882
+
883
+
884
+
885
+
886
+
887
+
888
+
889
+
890
+
891
+
892
+ </dl>
893
+
894
+
895
+
896
+
897
+
898
+ </div>
899
+
900
+ <div class="member">
901
+
902
+ <span class="method-parameter is-pulled-right">
903
+ <label>类型:</label>
904
+
905
+ <span class="param-type"><a link="SpatialReference.html" onclick="getTypeHTML(event)" class="mapgis-link-name" title="SpatialReference" SpatialReference.html>SpatialReference</a></span>
906
+
907
+
908
+
909
+ </span>
910
+
911
+ <h4 class="name" id="spatialReference">
912
+ <a class="href-link" href="#spatialReference">#</a>
913
+
914
+ <span class="code-name">
915
+ spatialReference
916
+ </span>
917
+
918
+ </h4>
919
+
920
+
921
+
922
+
923
+ <div class="description">
924
+ <p>子图层空间参考系</p>
925
+ </div>
926
+
927
+
928
+
929
+
930
+
931
+ <dl class="details">
932
+
933
+
934
+
935
+
936
+
937
+
938
+ <dt class="inherited-from">Inherited From:</dt>
939
+ <dd class="inherited-from"><ul class="dummy"><li>
940
+ <a goto="spatialReference" link="SubLayer.html" onclick="getTypeHTML(event)" class="mapgis-link-name" title="SubLayer#spatialReference" SubLayer.html#spatialReference>SubLayer#spatialReference</a>
941
+ </li></ul></dd>
942
+
943
+
944
+
945
+
946
+
947
+
948
+
949
+
950
+
951
+
952
+
953
+
954
+
955
+
956
+
957
+
958
+
959
+
960
+
961
+
962
+
963
+
964
+
965
+
966
+
967
+
968
+ </dl>
969
+
970
+
971
+
972
+
973
+
974
+ </div>
975
+
976
+ <div class="member">
977
+
978
+ <span class="method-parameter is-pulled-right">
979
+ <label>类型:</label>
980
+
981
+ <span class="param-type">Array</span>
982
+
983
+
984
+
985
+ </span>
986
+
987
+ <h4 class="name" id="sublayers">
988
+ <a class="href-link" href="#sublayers">#</a>
989
+
990
+ <span class="code-name">
991
+ sublayers
992
+ </span>
993
+
994
+ </h4>
995
+
996
+
997
+
998
+
999
+ <div class="description">
1000
+ <p>包含的子图层对象</p>
1001
+ </div>
1002
+
1003
+
1004
+
1005
+
1006
+
1007
+ <dl class="details">
1008
+
1009
+
1010
+
1011
+
1012
+
1013
+
1014
+
1015
+
1016
+ <dt class="tag-overrides">Overrides:</dt>
1017
+ <dd class="tag-overrides"><ul class="dummy"><li>
1018
+ <a class="mapgis-link-name" title="SubLayer#sublayers" SubLayer.html#sublayers>SubLayer#sublayers</a>
1019
+ </li></ul></dd>
1020
+
1021
+
1022
+
1023
+
1024
+
1025
+
1026
+
1027
+
1028
+
1029
+
1030
+
1031
+
1032
+
1033
+
1034
+
1035
+
1036
+
1037
+
1038
+
1039
+
1040
+
1041
+
1042
+
1043
+
1044
+ </dl>
1045
+
1046
+
1047
+
1048
+
1049
+
1050
+ </div>
1051
+
1052
+ <div class="member">
1053
+
1054
+ <span class="method-parameter is-pulled-right">
1055
+ <label>类型:</label>
1056
+
1057
+ <span class="param-type">String</span>
1058
+
1059
+
1060
+
1061
+ </span>
1062
+
1063
+ <h4 class="name" id="title">
1064
+ <a class="href-link" href="#title">#</a>
1065
+
1066
+ <span class="code-name">
1067
+ title
1068
+ </span>
1069
+
1070
+ </h4>
1071
+
1072
+
1073
+
1074
+
1075
+ <div class="description">
1076
+ <p>图层名称</p>
1077
+ </div>
1078
+
1079
+
1080
+
1081
+
1082
+
1083
+ <dl class="details">
1084
+
1085
+
1086
+
1087
+
1088
+
1089
+
1090
+
1091
+
1092
+ <dt class="tag-overrides">Overrides:</dt>
1093
+ <dd class="tag-overrides"><ul class="dummy"><li>
1094
+ <a class="mapgis-link-name" title="SubLayer#title" SubLayer.html#title>SubLayer#title</a>
1095
+ </li></ul></dd>
1096
+
1097
+
1098
+
1099
+
1100
+
1101
+
1102
+
1103
+
1104
+
1105
+
1106
+
1107
+
1108
+
1109
+
1110
+
1111
+
1112
+
1113
+
1114
+
1115
+
1116
+
1117
+
1118
+
1119
+
1120
+ </dl>
1121
+
1122
+
1123
+
1124
+
1125
+
1126
+ </div>
1127
+
1128
+ <div class="member">
1129
+
1130
+ <span class="method-parameter is-pulled-right">
1131
+ <label>类型:</label>
1132
+
1133
+ <span class="param-type">Boolean</span>
1134
+
1135
+
1136
+
1137
+ </span>
1138
+
1139
+ <h4 class="name" id="visible">
1140
+ <a class="href-link" href="#visible">#</a>
1141
+
1142
+ <span class="code-name">
1143
+ visible
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#visible" SubLayer.html#visible>SubLayer#visible</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>
1205
+ </div>
1206
+
1207
+
1208
+
1209
+ <div class='vertical-section'>
1210
+ <h3 id='function'>方法</h3>
1211
+ <h4 style="margin-top: 20px;margin-bottom: 20px;">方法概述</h4>
1212
+ <div class="members">
1213
+ <div class="table-container">
1214
+ <table class="params table">
1215
+ <thead>
1216
+ <tr>
1217
+ <th>名称</th>
1218
+ <th>返回值类型</th>
1219
+ <th>描述</th>
1220
+ </tr>
1221
+ </thead>
1222
+ <tbody>
1223
+
1224
+ <tr class="deep-level-0">
1225
+ <td class="name"><code><a href="#clone">clone</a></code></td>
1226
+ <td class="name">
1227
+ <code>
1228
+
1229
+
1230
+ <span class="param-type"><a link="VectorTileGroupSubLayer.html" onclick="getTypeHTML(event)" class="mapgis-link-name" title="VectorTileGroupSubLayer" VectorTileGroupSubLayer.html>VectorTileGroupSubLayer</a></span>
1231
+
1232
+
1233
+
1234
+
1235
+ </code>
1236
+ </td>
1237
+ <td class="name"><code><p>克隆方法</p></code></td>
1238
+ </tr>
1239
+
1240
+ <tr class="deep-level-0">
1241
+ <td class="name"><code><a href="#off">off</a></code></td>
1242
+ <td class="name">
1243
+ <code>
1244
+
1245
+
1246
+ <span class="param-type">Object</span>
1247
+
1248
+
1249
+
1250
+
1251
+ </code>
1252
+ </td>
1253
+ <td class="name"><code><p>移除事件<br/>
1254
+ 示例如下:<br/>
1255
+ <a href='#off1'>[1、移除一个事件的指定回调函数]</a><br/>
1256
+ <a href='#off2'>[2、移除一个事件的所有回调函数]</a><br/>
1257
+ <a href='#off3'>[3、移除多个事件的同一个指定的回调函数]</a><br/>
1258
+ <a href='#off4'>[4、移除多个指定事件的回调函数]</a><br/>
1259
+ <a href='#off5'>[5、删除时指定上下文 - types类型为字符串]</a><br/>
1260
+ <a href='#off6'>[6、删除时指定上下文 - types类型为对象]</a><br/></p></code></td>
1261
+ </tr>
1262
+
1263
+ <tr class="deep-level-0">
1264
+ <td class="name"><code><a href="#on">on</a></code></td>
1265
+ <td class="name">
1266
+ <code>
1267
+
1268
+
1269
+ <span class="param-type">Object</span>
1270
+
1271
+
1272
+
1273
+
1274
+ </code>
1275
+ </td>
1276
+ <td class="name"><code><p>注册一个新的监听事件;<br/>
1277
+ 示例如下:<br/>
1278
+ <a href='#event1'>[1、注册一个事件]</a><br/>
1279
+ <a href='#event2'>[2、一次注册多个事件 - 同一个回调函数]</a><br/>
1280
+ <a href='#event3'>[3、一次注册多个事件 - 分别指回调应函数]</a><br/>
1281
+ <a href='#event4'>[4、当types为字符串时 - 指定上下文]</a><br/>
1282
+ <a href='#event5'>[5、当types为对象时 - 指定上下文]</a><br/></p></code></td>
1283
+ </tr>
1284
+
1285
+ <tr class="deep-level-0">
1286
+ <td class="name"><code><a href="#toJSON">toJSON</a></code></td>
1287
+ <td class="name">
1288
+ <code>
1289
+
1290
+
1291
+ <span class="param-type">Object</span>
1292
+
1293
+
1294
+
1295
+
1296
+ </code>
1297
+ </td>
1298
+ <td class="name"><code><p>转换为json对象</p></code></td>
1299
+ </tr>
1300
+
1301
+ </tbody>
1302
+ </table>
1303
+ </div>
1304
+ <h4 style="margin-top: 20px;margin-bottom: 20px;">方法详情</h4>
1305
+
1306
+ <div class="member">
1307
+
1308
+
1309
+
1310
+ <h4 class="name" id="clone">
1311
+ <a class="href-link" href="#clone">#</a>
1312
+
1313
+ <span class="code-name" id="clone" style="font-size:30px">
1314
+
1315
+ clone<span class="signature">()</span>
1316
+
1317
+ </span>
1318
+ </h4>
1319
+
1320
+
1321
+
1322
+ <div class="description">
1323
+ <p>克隆方法</p>
1324
+ </div>
1325
+
1326
+
1327
+
1328
+
1329
+
1330
+
1331
+
1332
+
1333
+
1334
+
1335
+
1336
+
1337
+
1338
+
1339
+ <dl class="details">
1340
+
1341
+
1342
+
1343
+
1344
+
1345
+
1346
+
1347
+
1348
+ <dt class="tag-overrides">Overrides:</dt>
1349
+ <dd class="tag-overrides"><ul class="dummy"><li>
1350
+ <a class="mapgis-link-name" title="SubLayer#clone" SubLayer.html#clone>SubLayer#clone</a>
1351
+ </li></ul></dd>
1352
+
1353
+
1354
+
1355
+
1356
+
1357
+
1358
+
1359
+
1360
+
1361
+
1362
+
1363
+
1364
+
1365
+
1366
+
1367
+
1368
+
1369
+
1370
+
1371
+
1372
+
1373
+
1374
+
1375
+
1376
+ </dl>
1377
+
1378
+
1379
+
1380
+
1381
+
1382
+
1383
+
1384
+
1385
+
1386
+
1387
+
1388
+
1389
+
1390
+
1391
+
1392
+
1393
+
1394
+
1395
+ <div class='columns method-parameter'>
1396
+ <div class="column is-2"><label>返回值</label></div>
1397
+ <div class="column is-10">
1398
+
1399
+
1400
+
1401
+ <div class="columns">
1402
+
1403
+ <div class='param-desc column is-7'><p>图层</p></div>
1404
+
1405
+
1406
+ <div class='column is-5 has-text-left'>
1407
+ <label>类型: </label>
1408
+
1409
+ <span class="param-type"><a link="VectorTileGroupSubLayer.html" onclick="getTypeHTML(event)" class="mapgis-link-name" title="VectorTileGroupSubLayer" VectorTileGroupSubLayer.html>VectorTileGroupSubLayer</a></span>
1410
+
1411
+
1412
+
1413
+ </div>
1414
+
1415
+ </div>
1416
+
1417
+
1418
+ </div>
1419
+ </div>
1420
+
1421
+
1422
+
1423
+
1424
+
1425
+
1426
+ </div>
1427
+
1428
+ <div class="member">
1429
+
1430
+
1431
+
1432
+ <h4 class="name" id="off">
1433
+ <a class="href-link" href="#off">#</a>
1434
+
1435
+ <span class="code-name" id="off" style="font-size:30px">
1436
+
1437
+ 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>
1438
+
1439
+ </span>
1440
+ </h4>
1441
+
1442
+
1443
+
1444
+ <div class="description">
1445
+ <p>移除事件<br/>
1446
+ 示例如下:<br/>
1447
+ <a href='#off1'>[1、移除一个事件的指定回调函数]</a><br/>
1448
+ <a href='#off2'>[2、移除一个事件的所有回调函数]</a><br/>
1449
+ <a href='#off3'>[3、移除多个事件的同一个指定的回调函数]</a><br/>
1450
+ <a href='#off4'>[4、移除多个指定事件的回调函数]</a><br/>
1451
+ <a href='#off5'>[5、删除时指定上下文 - types类型为字符串]</a><br/>
1452
+ <a href='#off6'>[6、删除时指定上下文 - types类型为对象]</a><br/></p>
1453
+ </div>
1454
+
1455
+
1456
+
1457
+
1458
+
1459
+
1460
+
1461
+
1462
+
1463
+
1464
+ <h4>参数</h4>
1465
+
1466
+ <div class="table-container">
1467
+ <table class="params table">
1468
+ <thead>
1469
+ <tr>
1470
+
1471
+ <th>名称</th>
1472
+
1473
+
1474
+ <th>类型</th>
1475
+
1476
+
1477
+
1478
+ <th class="last">描述</th>
1479
+ </tr>
1480
+ </thead>
1481
+
1482
+ <tbody>
1483
+
1484
+
1485
+
1486
+ <tr class="deep-level-0">
1487
+
1488
+ <td class="name" id="types"><code>types</code></td>
1489
+
1490
+
1491
+ <td class="type">
1492
+
1493
+
1494
+ <span class="param-type">string</span>
1495
+
1496
+
1497
+
1498
+
1499
+ </td>
1500
+
1501
+
1502
+
1503
+ <td class="description last"><p>移除指定事件类型上绑定的回调函数<br/>
1504
+ 当类型为字符串时,可以移除单个或多个事件类型绑定的回调函数,单个事件:&quot;click&quot;,多个事件:以空格分割:&quot;click double-click&quot;;<br/>
1505
+ 当types为对象时,使用如下方式移除事件:{'click': onClickFun, 'mouse-move': onMouseMoveFun}</p></td>
1506
+ </tr>
1507
+
1508
+
1509
+
1510
+
1511
+
1512
+
1513
+ <tr class="deep-level-0">
1514
+
1515
+ <td class="name" id="fn"><code>fn</code></td>
1516
+
1517
+
1518
+ <td class="type">
1519
+
1520
+
1521
+ <span class="param-type">function</span>
1522
+
1523
+
1524
+
1525
+
1526
+ </td>
1527
+
1528
+
1529
+
1530
+ <td class="description last"><p>事件回调函数,当types为字符串,且不指定要删除的回调函数时,删除该事件上的所有回调函数</p></td>
1531
+ </tr>
1532
+
1533
+
1534
+
1535
+
1536
+
1537
+
1538
+ <tr class="deep-level-0">
1539
+
1540
+ <td class="name" id="context"><code>context</code></td>
1541
+
1542
+
1543
+ <td class="type">
1544
+
1545
+
1546
+ <span class="param-type">Object</span>
1547
+
1548
+
1549
+
1550
+
1551
+ </td>
1552
+
1553
+
1554
+
1555
+ <td class="description last"><p>事件回调函数的this关键字将指向的对象</p></td>
1556
+ </tr>
1557
+
1558
+
1559
+
1560
+
1561
+ </tbody>
1562
+ </table>
1563
+ </div>
1564
+
1565
+
1566
+
1567
+
1568
+
1569
+
1570
+ <dl class="details">
1571
+
1572
+
1573
+
1574
+
1575
+
1576
+
1577
+ <dt class="inherited-from">Inherited From:</dt>
1578
+ <dd class="inherited-from"><ul class="dummy"><li>
1579
+ <a goto="off" link="Evented.html" onclick="getTypeHTML(event)" class="mapgis-link-name" title="Evented#off" Evented.html#off>Evented#off</a>
1580
+ </li></ul></dd>
1581
+
1582
+
1583
+
1584
+
1585
+
1586
+
1587
+
1588
+
1589
+
1590
+
1591
+
1592
+
1593
+
1594
+
1595
+
1596
+
1597
+
1598
+
1599
+
1600
+
1601
+
1602
+
1603
+
1604
+
1605
+
1606
+
1607
+ </dl>
1608
+
1609
+
1610
+
1611
+
1612
+
1613
+
1614
+
1615
+
1616
+
1617
+
1618
+
1619
+
1620
+
1621
+
1622
+
1623
+
1624
+
1625
+
1626
+ <div class='columns method-parameter'>
1627
+ <div class="column is-2"><label>返回值</label></div>
1628
+ <div class="column is-10">
1629
+
1630
+
1631
+
1632
+ <div class="columns">
1633
+
1634
+ <div class='param-desc column is-7'><p>当前实例</p></div>
1635
+
1636
+
1637
+ <div class='column is-5 has-text-left'>
1638
+ <label>类型: </label>
1639
+
1640
+ <span class="param-type">Object</span>
1641
+
1642
+
1643
+
1644
+ </div>
1645
+
1646
+ </div>
1647
+
1648
+
1649
+ </div>
1650
+ </div>
1651
+
1652
+
1653
+
1654
+
1655
+
1656
+
1657
+ <h5>示例</h5>
1658
+
1659
+ <p class="code-caption"><h5 id='off1'>移除一个事件的指定回调函数</h5></p>
1660
+
1661
+
1662
+ <pre class="prettyprint"><code>// 一个事件的回调函数
1663
+ const clickFunction = function (event) {
1664
+ console.log("点击事件:", event)
1665
+ }
1666
+ // 调用MapView或SceneView的off方法移除一个事件的回调函数
1667
+ view.off('click', clickFunction)</code></pre>
1668
+
1669
+
1670
+ <p class="code-caption"><h5 id='off2'>移除一个事件的所有回调函数</h5></p>
1671
+
1672
+
1673
+ <pre class="prettyprint"><code>// 一个事件的回调函数1
1674
+ const clickFunction1 = function (event) {
1675
+ console.log("点击事件1:", event)
1676
+ }
1677
+
1678
+ // 一个事件的回调函数2
1679
+ const clickFunction2 = function (event) {
1680
+ console.log("点击事件2:", event)
1681
+ }
1682
+
1683
+ // 调用MapView或SceneView的off方法移除一个事件的所有回调函数
1684
+ // 不指定回调函数,则移除该事件上的所有绑定的回调函数
1685
+ view.off('click')</code></pre>
1686
+
1687
+
1688
+ <p class="code-caption"><h5 id='off3'>移除多个事件的同一个指定的回调函数</h5></p>
1689
+
1690
+
1691
+ <pre class="prettyprint"><code>// 多个事件的同一个回调函数
1692
+ const eventFunction = function (event) {
1693
+ console.log("事件:", event)
1694
+ }
1695
+ // 调用MapView或SceneView的off方法移除多个事件的同一个指定的回调函数
1696
+ view.off('click double-click', eventFunction)</code></pre>
1697
+
1698
+
1699
+ <p class="code-caption"><h5 id='off4'>移除多个指定事件的回调函数</h5></p>
1700
+
1701
+
1702
+ <pre class="prettyprint"><code>// 一个事件的回调函数
1703
+ const clickFunction = function (event) {
1704
+ console.log("click事件:", event)
1705
+ }
1706
+ // 调用MapView或SceneView的off方法移除多个指定事件的回调函数
1707
+ view.off({
1708
+ // 移除click事件上一个指定的函数
1709
+ "click": clickFunction,
1710
+ // 移除double-click上所有指定的函数
1711
+ "double-click": undefined
1712
+ })</code></pre>
1713
+
1714
+
1715
+ <p class="code-caption"><h5 id='off5'>删除时指定上下文 - types类型为字符串</h5></p>
1716
+
1717
+
1718
+ <pre class="prettyprint"><code>// 一个事件的回调函数
1719
+ const clickFunction = function (event) {
1720
+ console.log("点击事件:", event)
1721
+ }
1722
+ // 调用MapView或SceneView的off方法移除一个事件的回调函数
1723
+ view.off('click', clickFunction, view)
1724
+ // 调用MapView或SceneView的off方法移除一个事件的所有回调函数
1725
+ view.off('click', undefined, view)</code></pre>
1726
+
1727
+
1728
+ <p class="code-caption"><h5 id='off6'>删除时指定上下文 - types类型为对象</h5></p>
1729
+
1730
+
1731
+ <pre class="prettyprint"><code>// 一个事件的回调函数
1732
+ const clickFunction = function (event) {
1733
+ console.log("click事件:", event)
1734
+ }
1735
+ // 调用MapView或SceneView的off方法移除多个指定事件的回调函数
1736
+ view.off({
1737
+ // 移除click事件上一个指定的函数
1738
+ "click": clickFunction,
1739
+ // 移除double-click上所有指定的函数
1740
+ "double-click": undefined
1741
+ }, view)</code></pre>
1742
+
1743
+
1744
+
1745
+ </div>
1746
+
1747
+ <div class="member">
1748
+
1749
+
1750
+
1751
+ <h4 class="name" id="on">
1752
+ <a class="href-link" href="#on">#</a>
1753
+
1754
+ <span class="code-name" id="on" style="font-size:30px">
1755
+
1756
+ 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>
1757
+
1758
+ </span>
1759
+ </h4>
1760
+
1761
+
1762
+
1763
+ <div class="description">
1764
+ <p>注册一个新的监听事件;<br/>
1765
+ 示例如下:<br/>
1766
+ <a href='#event1'>[1、注册一个事件]</a><br/>
1767
+ <a href='#event2'>[2、一次注册多个事件 - 同一个回调函数]</a><br/>
1768
+ <a href='#event3'>[3、一次注册多个事件 - 分别指回调应函数]</a><br/>
1769
+ <a href='#event4'>[4、当types为字符串时 - 指定上下文]</a><br/>
1770
+ <a href='#event5'>[5、当types为对象时 - 指定上下文]</a><br/></p>
1771
+ </div>
1772
+
1773
+
1774
+
1775
+
1776
+
1777
+
1778
+
1779
+
1780
+
1781
+
1782
+ <h4>参数</h4>
1783
+
1784
+ <div class="table-container">
1785
+ <table class="params table">
1786
+ <thead>
1787
+ <tr>
1788
+
1789
+ <th>名称</th>
1790
+
1791
+
1792
+ <th>类型</th>
1793
+
1794
+
1795
+ <th style="min-width: 100px;">默认值</th>
1796
+
1797
+
1798
+ <th class="last">描述</th>
1799
+ </tr>
1800
+ </thead>
1801
+
1802
+ <tbody>
1803
+
1804
+
1805
+
1806
+ <tr class="deep-level-0">
1807
+
1808
+ <td class="name" id="types"><code>types</code></td>
1809
+
1810
+
1811
+ <td class="type">
1812
+
1813
+
1814
+ <span class="param-type">String</span>
1815
+ |
1816
+
1817
+ <span class="param-type">Object</span>
1818
+
1819
+
1820
+
1821
+
1822
+ </td>
1823
+
1824
+
1825
+ <td class="default">
1826
+
1827
+ null
1828
+
1829
+ </td>
1830
+
1831
+
1832
+ <td class="description last"><p>事件类型<br/>
1833
+ 当types为字符串时,可以定义单个或多个事件,单个事件:&quot;click&quot;,多个事件:以空格分割:&quot;click double-click&quot;;<br/>
1834
+ 当types为对象时,使用如下方式指定事件:{'click': onClickFun, 'mouse-move': onMouseMoveFun}</p></td>
1835
+ </tr>
1836
+
1837
+
1838
+
1839
+
1840
+
1841
+
1842
+ <tr class="deep-level-0">
1843
+
1844
+ <td class="name" id="fn"><code>fn</code></td>
1845
+
1846
+
1847
+ <td class="type">
1848
+
1849
+
1850
+ <span class="param-type">function</span>
1851
+
1852
+
1853
+
1854
+
1855
+ </td>
1856
+
1857
+
1858
+ <td class="default">
1859
+
1860
+ null
1861
+
1862
+ </td>
1863
+
1864
+
1865
+ <td class="description last"><p>事件回调函数</p></td>
1866
+ </tr>
1867
+
1868
+
1869
+
1870
+
1871
+
1872
+
1873
+ <tr class="deep-level-0">
1874
+
1875
+ <td class="name" id="context"><code>context</code></td>
1876
+
1877
+
1878
+ <td class="type">
1879
+
1880
+
1881
+ <span class="param-type">Object</span>
1882
+
1883
+
1884
+
1885
+
1886
+ </td>
1887
+
1888
+
1889
+ <td class="default">
1890
+
1891
+ null
1892
+
1893
+ </td>
1894
+
1895
+
1896
+ <td class="description last"><p>事件回调函数的this关键字将指向的对象</p></td>
1897
+ </tr>
1898
+
1899
+
1900
+
1901
+
1902
+ </tbody>
1903
+ </table>
1904
+ </div>
1905
+
1906
+
1907
+
1908
+
1909
+
1910
+
1911
+ <dl class="details">
1912
+
1913
+
1914
+
1915
+
1916
+
1917
+
1918
+ <dt class="inherited-from">Inherited From:</dt>
1919
+ <dd class="inherited-from"><ul class="dummy"><li>
1920
+ <a goto="on" link="Evented.html" onclick="getTypeHTML(event)" class="mapgis-link-name" title="Evented#on" Evented.html#on>Evented#on</a>
1921
+ </li></ul></dd>
1922
+
1923
+
1924
+
1925
+
1926
+
1927
+
1928
+
1929
+
1930
+
1931
+
1932
+
1933
+
1934
+
1935
+
1936
+
1937
+
1938
+
1939
+
1940
+
1941
+
1942
+
1943
+
1944
+
1945
+
1946
+
1947
+
1948
+ </dl>
1949
+
1950
+
1951
+
1952
+
1953
+
1954
+
1955
+
1956
+
1957
+
1958
+
1959
+
1960
+
1961
+
1962
+
1963
+
1964
+
1965
+
1966
+
1967
+ <div class='columns method-parameter'>
1968
+ <div class="column is-2"><label>返回值</label></div>
1969
+ <div class="column is-10">
1970
+
1971
+
1972
+
1973
+ <div class="columns">
1974
+
1975
+ <div class='param-desc column is-7'><p>当前实例</p></div>
1976
+
1977
+
1978
+ <div class='column is-5 has-text-left'>
1979
+ <label>类型: </label>
1980
+
1981
+ <span class="param-type">Object</span>
1982
+
1983
+
1984
+
1985
+ </div>
1986
+
1987
+ </div>
1988
+
1989
+
1990
+ </div>
1991
+ </div>
1992
+
1993
+
1994
+
1995
+
1996
+
1997
+
1998
+ <h5>示例</h5>
1999
+
2000
+ <p class="code-caption"><h5 id='event1'>注册一个事件</h5></p>
2001
+
2002
+
2003
+ <pre class="prettyprint"><code>// 初始化一个点击事件回调函数
2004
+ const clickFunction = function (event) {
2005
+ console.log("点击事件:", event)
2006
+ }
2007
+ // 调用MapView或SceneView的on方法注册一个点击事件
2008
+ view.on('click', clickFunction)</code></pre>
2009
+
2010
+
2011
+ <p class="code-caption"><h5 id='event2'>一次注册多个事件 - 同一个回调函数</h5></p>
2012
+
2013
+
2014
+ <pre class="prettyprint"><code>// 初始化一个事件回调函数
2015
+ const eventFunction = function (event) {
2016
+ console.log("事件:", event)
2017
+ }
2018
+
2019
+ // 调用MapView或SceneView的on方法注册多个事件
2020
+ // 多个事件类型使用同一个回调函数
2021
+ view.on('click right-click-down', eventFunction)</code></pre>
2022
+
2023
+
2024
+ <p class="code-caption"><h5 id='event3'>一次注册多个事件 - 分别指回调应函数</h5></p>
2025
+
2026
+
2027
+ <pre class="prettyprint"><code>// 初始化一个左键点击事件回调函数
2028
+ const clickFunction = function (event) {
2029
+ console.log("click事件:", event)
2030
+ }
2031
+
2032
+ // 初始化一个右键按下事件回调函数
2033
+ const rightClickFunction = function (event) {
2034
+ console.log("right-click-down事件:", event)
2035
+ }
2036
+
2037
+ // 调用MapView或SceneView的on方法注册多个事件
2038
+ // 每一个事件类型,使用单独的回调函数
2039
+ // 注意使用此种方式,一种类型的事件仅能指定一个回调函数
2040
+ view.on({
2041
+ "click": clickFunction,
2042
+ "right-click-down": rightClickFunction
2043
+ })</code></pre>
2044
+
2045
+
2046
+ <p class="code-caption"><h5 id='event4'>指定上下文 - types类型为字符串</h5></p>
2047
+
2048
+
2049
+ <pre class="prettyprint"><code>// 初始化一个点击事件回调函数
2050
+ const clickFunction = function (event) {
2051
+ console.log("点击事件:", event)
2052
+ console.log("上下文对象:", this)
2053
+ }
2054
+ // 调用MapView或SceneView的on方法注册一个点击事件
2055
+ // 指定view为回调函数的上下文对象
2056
+ view.on('click', clickFunction, view)</code></pre>
2057
+
2058
+
2059
+ <p class="code-caption"><h5 id='event5'>指定上下文 - types类型为对象</h5></p>
2060
+
2061
+
2062
+ <pre class="prettyprint"><code>// 初始化一个点击事件回调函数
2063
+ const clickFunction = function (event) {
2064
+ console.log("点击事件:", event)
2065
+ console.log("上下文对象:", this)
2066
+ }
2067
+ // 调用MapView或SceneView的on方法注册一个点击事件
2068
+ // 指定view为回调函数的上下文对象
2069
+ view.on({
2070
+ "click": clickFunction,
2071
+ "right-click-down": clickFunction
2072
+ }, view)</code></pre>
2073
+
2074
+
2075
+
2076
+ </div>
2077
+
2078
+ <div class="member">
2079
+
2080
+
2081
+
2082
+ <h4 class="name" id="toJSON">
2083
+ <a class="href-link" href="#toJSON">#</a>
2084
+
2085
+ <span class="code-name" id="toJSON" style="font-size:30px">
2086
+
2087
+ toJSON<span class="signature">()</span>
2088
+
2089
+ </span>
2090
+ </h4>
2091
+
2092
+
2093
+
2094
+ <div class="description">
2095
+ <p>转换为json对象</p>
2096
+ </div>
2097
+
2098
+
2099
+
2100
+
2101
+
2102
+
2103
+
2104
+
2105
+
2106
+
2107
+
2108
+
2109
+
2110
+
2111
+ <dl class="details">
2112
+
2113
+
2114
+
2115
+
2116
+
2117
+
2118
+
2119
+
2120
+ <dt class="tag-overrides">Overrides:</dt>
2121
+ <dd class="tag-overrides"><ul class="dummy"><li>
2122
+ <a class="mapgis-link-name" title="SubLayer#toJSON" SubLayer.html#toJSON>SubLayer#toJSON</a>
2123
+ </li></ul></dd>
2124
+
2125
+
2126
+
2127
+
2128
+
2129
+
2130
+
2131
+
2132
+
2133
+
2134
+
2135
+
2136
+
2137
+
2138
+
2139
+
2140
+
2141
+
2142
+
2143
+
2144
+
2145
+
2146
+
2147
+
2148
+ </dl>
2149
+
2150
+
2151
+
2152
+
2153
+
2154
+
2155
+
2156
+
2157
+
2158
+
2159
+
2160
+
2161
+
2162
+
2163
+
2164
+
2165
+
2166
+
2167
+ <div class='columns method-parameter'>
2168
+ <div class="column is-2"><label>返回值</label></div>
2169
+ <div class="column is-10">
2170
+
2171
+
2172
+
2173
+ <div class="columns">
2174
+
2175
+ <div class='param-desc column is-7'><p>json对象</p></div>
2176
+
2177
+
2178
+ <div class='column is-5 has-text-left'>
2179
+ <label>类型: </label>
2180
+
2181
+ <span class="param-type">Object</span>
2182
+
2183
+
2184
+
2185
+ </div>
2186
+
2187
+ </div>
2188
+
2189
+
2190
+ </div>
2191
+ </div>
2192
+
2193
+
2194
+
2195
+
2196
+
2197
+
2198
+ </div>
2199
+
2200
+ </div>
2201
+ </div>
2202
+
2203
+
2204
+
2205
+
2206
+
2207
+ </article>
2208
+
2209
+ </section>