@mapgis/webclient-mapboxgl-plugin 10.3.3 → 17.0.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (87) hide show
  1. package/README.md +51 -124
  2. package/dist/es5/webclient-common.min.js +90 -0
  3. package/dist/es5/webclient-mapboxgl-plugin.min.js +1 -0
  4. package/dist/webclient-mapboxgl-plugin-es6.min.js +1 -0
  5. package/documention/EchartsLayer.html +379 -0
  6. package/documention/MapViewMapboxgl.html +3587 -0
  7. package/documention/Popup.html +1523 -0
  8. package/documention/Screenshot.html +1089 -0
  9. package/documention/SketchEditorMapboxgl.html +3383 -0
  10. package/documention/document_ArcGISVectorTileLayerView.js.html +265 -0
  11. package/documention/document_EchartsLayerView.js.html +246 -0
  12. package/documention/document_GraphicsLayerView.js.html +314 -0
  13. package/documention/document_IGSFeatureLayerView.js.html +218 -0
  14. package/documention/document_IGSMapImageLayerView.js.html +240 -0
  15. package/documention/document_IGSTileLayerView.js.html +236 -0
  16. package/documention/document_IGSVectorTileLayerView.js.html +264 -0
  17. package/documention/document_MapVLayerView.js.html +247 -0
  18. package/documention/document_WMSLayerView.js.html +240 -0
  19. package/documention/document_WMTSLayerView.js.html +234 -0
  20. package/documention/document_WebTileLayerView.js.html +240 -0
  21. package/documention/document_support_FeatureRenderView.js.html +682 -0
  22. package/documention/document_support_MapboxglGraphicsLayer.js.html +1184 -0
  23. package/documention/document_support_SourceMetaData.js.html +223 -0
  24. package/documention/document_support_Utils.js.html +624 -0
  25. package/documention/document_support_mapbox_mapboxCustomUtil.js.html +322 -0
  26. package/documention/global.html +252 -0
  27. package/documention/index.html +251 -0
  28. package/documention/module-%E5%AE%A2%E6%88%B7%E7%AB%AF%E5%8F%AF%E8%A7%86%E5%8C%96.MapvLayer.html +445 -0
  29. package/documention/scripts/app.min.js +1 -0
  30. package/documention/scripts/linenumber.js +26 -0
  31. package/documention/scripts/search.js +45 -0
  32. package/documention/scripts/sideBar.js +11 -0
  33. package/documention/sketchEditor_SketchEditorMapboxgl.js.html +875 -0
  34. package/documention/styles/anchor.png +0 -0
  35. package/documention/styles/app.min.css +1 -0
  36. package/documention/styles/c.png +0 -0
  37. package/documention/styles/iframe.css +29 -0
  38. package/documention/styles/m.png +0 -0
  39. package/documention/styles/prettify-jsdoc.css +111 -0
  40. package/documention/styles/prettify-tomorrow.css +132 -0
  41. package/documention/styles/reset.css +44 -0
  42. package/documention/styles/up-arrow.png +0 -0
  43. package/documention/tutorial-1./345/277/253/351/200/237/345/205/245/351/227/250.html +165 -0
  44. package/documention/util_ConvertRendererToStyleLayerUtil.js.html +844 -0
  45. package/documention/util_MapboxglFeatureRender.js.html +225 -0
  46. package/documention/util_MapboxglPlugin.js.html +284 -0
  47. package/documention/view_MapViewMapboxgl.js.html +1882 -0
  48. package/documention/view_utils_ArcGISVectorTileLayerUtil.js.html +382 -0
  49. package/documention/view_utils_EchartsLayerUtil.js.html +194 -0
  50. package/documention/view_utils_IGSMapImageUtil.js.html +373 -0
  51. package/documention/view_utils_IGSTileLayerUtil.js.html +285 -0
  52. package/documention/view_utils_IGSVectorTileLayerUtil.js.html +379 -0
  53. package/documention/view_utils_MapVLayerUtil.js.html +197 -0
  54. package/documention/view_utils_Popup.js.html +525 -0
  55. package/documention/view_utils_Screenshot.js.html +320 -0
  56. package/documention/view_utils_WMSLayerUtil.js.html +337 -0
  57. package/documention/view_utils_WMTSLayerUtil.js.html +331 -0
  58. package/documention/view_utils_WebTileLayerUtil.js.html +284 -0
  59. package/documention/view_utils_echarts_EchartsLayerPlugin.js.html +419 -0
  60. package/documention/view_utils_mapV_MapVLayerPlugin.js.html +527 -0
  61. package/documention/view_utils_mapV_MapvBaseLayer.js.html +477 -0
  62. package/documention/view_utils_support_rasterLayerUtil.js.html +244 -0
  63. package/documention/view_utils_support_vectorLayerUtil.js.html +503 -0
  64. package/package.json +20 -20
  65. package/core/Base.js +0 -7
  66. package/core/index.js +0 -5
  67. package/index.js +0 -6
  68. package/overlay/D3Layer.js +0 -108
  69. package/overlay/EchartsLayer.js +0 -242
  70. package/overlay/ElsCubeLayer.js +0 -125
  71. package/overlay/MapvLayer.js +0 -298
  72. package/overlay/StreamLayer.js +0 -86
  73. package/overlay/TimeSpaceCubeLayer.js +0 -135
  74. package/overlay/dthree/mapbox-d3.css +0 -9
  75. package/overlay/echarts/MapCoordSys.js +0 -105
  76. package/overlay/echarts/MapModel.js +0 -0
  77. package/overlay/echarts/MapView.js +0 -0
  78. package/overlay/echarts/index.js +0 -4
  79. package/overlay/index.js +0 -31
  80. package/overlay/mapv/MapvBaseLayer.js +0 -299
  81. package/overlay/mapv/index.js +0 -5
  82. package/overlay/stream/GeojsonStreamLayer.js +0 -135
  83. package/overlay/stream/MapvStreamLayer.js +0 -79
  84. package/overlay/stream/index.js +0 -3
  85. package/overlay/stream/popup.css +0 -31
  86. package/service/index.js +0 -1
  87. package/service/socket/SocketService.js +0 -90
@@ -0,0 +1,382 @@
1
+
2
+
3
+ <!DOCTYPE html>
4
+ <html lang="en">
5
+
6
+ <head>
7
+
8
+ <meta charset="utf-8">
9
+ <meta name="viewport" content="width=device-width, initial-scale=1">
10
+ <title>Client for JavaScript view/utils/ArcGISVectorTileLayerUtil.js</title>
11
+ <!--[if lt IE 9]>
12
+ <script src="//html5shiv.googlecode.com/svn/trunk/html5.js"></script>
13
+ <![endif]-->
14
+ <link type="text/css" rel="stylesheet" href="styles/app.min.css">
15
+ <link type="text/css" rel="stylesheet" href="styles/iframe.css">
16
+ <link type="text/css" rel="stylesheet" href="">
17
+
18
+
19
+ </head>
20
+
21
+
22
+
23
+ <body class="layout small-header">
24
+ <div id="stickyNavbarOverlay"></div>
25
+
26
+
27
+ <div class="top-nav">
28
+ <div class="inner">
29
+ <a id="hamburger" role="button" class="navbar-burger" aria-label="menu" aria-expanded="false">
30
+ <span aria-hidden="true"></span>
31
+ <span aria-hidden="true"></span>
32
+ <span aria-hidden="true"></span>
33
+ </a>
34
+ <div class="logo">
35
+
36
+ <h1> MapGIS Client for JavaScript API</h1>
37
+
38
+
39
+ </div>
40
+ <div class="menu">
41
+
42
+ <div class="navigation">
43
+
44
+
45
+ <a
46
+ class="link user-link "
47
+ href="/static/modules/common/api/common-mapgis/index.html"
48
+ >
49
+ Common
50
+ </a>
51
+
52
+ <a
53
+ class="link user-link "
54
+ href="/static/modules/cesium/api/cesium-mapgis/index.html"
55
+ >
56
+ Cesium
57
+ </a>
58
+
59
+ <a
60
+ class="link user-link "
61
+ href="/static/modules/mapboxgl/api/mapboxgl-mapgis/index.html"
62
+ >
63
+ MapboxGL
64
+ </a>
65
+
66
+ <a
67
+ class="link user-link "
68
+ href="/static/modules/leaflet/api/leaflet-mapgis/index.html"
69
+ >
70
+ Leaflet
71
+ </a>
72
+
73
+ <a
74
+ class="link user-link "
75
+ href="/static/modules/openlayers/api/openLayers-mapgis/index.html"
76
+ >
77
+ OpenLayers
78
+ </a>
79
+
80
+
81
+
82
+ </div>
83
+ </div>
84
+ </div>
85
+ </div>
86
+
87
+ <div id="main">
88
+ <div
89
+ class="sidebar "
90
+ id="sidebarNav"
91
+ >
92
+ <div>
93
+ <span class="mapgis-api-document-span"><a href="index.html">API文档</a></span>
94
+ </div>
95
+
96
+ <div class="search-wrapper">
97
+ <input id="search" type="text" placeholder="搜索文档..." class="input">
98
+ </div>
99
+
100
+ <nav>
101
+
102
+ <div class="category"><div style="font-weight: bold;vertical-align: middle;padding: 0.4rem 0;" class="mapgis-menu-span"><img style="width: 20px;margin-right: 6px;vertical-align: middle;" src="./styles/m.png" alt="">undefined</div><ul class="mapgis-sidebar-menus"><li><img style="width: 20px;margin-right: 6px;vertical-align: middle;" src="./styles/c.png" alt=""><a href="Popup.html">Popup</a><span style="display: none;"><p>二维场景信息弹窗(leaflet引擎)
103
+ 参考示例:
104
+ <a href='#MapView'>[初始化二维场景视图]</a>
105
+ [ES6引入方式]:<br/>
106
+ import { Popup } from '@mapgis/webclient-leaflet-plugin' <br/>
107
+ 自定义样式说明:<br/>
108
+ zondy-popup__content 弹窗容器样式<br/>
109
+ zondy-popup__tip 弹窗对话框箭头样式<br/>
110
+ zondy-popup__header 弹窗头部样式<br/>
111
+ zondy-popup__content 弹窗主体样式<br/>
112
+ zondy-popup__footer 弹窗底部样式<br/></p></span></li></ul><div style="font-weight: bold;vertical-align: middle;padding: 0.4rem 0;" class="mapgis-menu-span"><img style="width: 20px;margin-right: 6px;vertical-align: middle;" src="./styles/m.png" alt="">undefined</div><ul class="mapgis-sidebar-menus"><li><img style="width: 20px;margin-right: 6px;vertical-align: middle;" src="./styles/c.png" alt=""><a href="Screenshot.html">Screenshot</a><span style="display: none;"><p>打印工具</p></span></li></ul><div style="font-weight: bold;vertical-align: middle;padding: 0.4rem 0;" class="mapgis-menu-span"><img style="width: 20px;margin-right: 6px;vertical-align: middle;" src="./styles/m.png" alt="">草图编辑模块</div><ul class="mapgis-sidebar-menus"><li><img style="width: 20px;margin-right: 6px;vertical-align: middle;" src="./styles/c.png" alt=""><a href="SketchEditorMapboxgl.html">SketchEditorMapboxgl</a><span style="display: none;"><p>二维场景草图编辑类<br/>
113
+ <br>[ES5引入方式]:<br/>
114
+ const { SketchEditorMapboxgl } = Zondy <br/>
115
+ [ES6引入方式]:<br/>
116
+ import { SketchEditorMapboxgl } from &quot;@mapgis/webclient-leaflet-plugin&quot; <br/></p></span></li></ul></div>
117
+
118
+ </nav>
119
+ </div>
120
+ <div class="core" id="main-content-wrapper">
121
+ <div class="content">
122
+ <header id="page-title" class="page-title">
123
+ <span class="page-title-main">类名</span>
124
+ <span class="page-title-sub">view/utils/ArcGISVectorTileLayerUtil.js</span>
125
+ </header>
126
+
127
+
128
+
129
+
130
+
131
+ <section>
132
+ <article>
133
+ <pre class="prettyprint source linenums"><code>import { defaultValue } from '@mapgis/webclient-common'
134
+ import {
135
+ removeLayer,
136
+ setOpacity,
137
+ setVisible,
138
+ getPaintOptions,
139
+ setPaintProperties,
140
+ setLayoutProperties,
141
+ setFilter,
142
+ setLayerZoomRange,
143
+ addSources,
144
+ addLayers,
145
+ getLayers,
146
+ updateStyleLayer
147
+ } from './support/vectorLayerUtil'
148
+
149
+ /**
150
+ * 实际加载图层的工具类
151
+ * @private
152
+ * */
153
+ class ArcGISVectorTileLayerUtil {}
154
+
155
+ /**
156
+ * 添加地图图片图层
157
+ * @param {IGSTileLayerView} layerView 图层视图对象
158
+ * @param {Object} options 额外参数
159
+ * @return {Object} 实际的图层对象
160
+ * */
161
+ ArcGISVectorTileLayerUtil.addIGSVectorTileLayer = function (
162
+ layerView,
163
+ options
164
+ ) {
165
+ options = defaultValue(options, {})
166
+ const layer = layerView.layer
167
+ const innerView = layerView.innerView
168
+
169
+ // 先获取地图视图的样式
170
+ const mapStyle = innerView.getStyle()
171
+
172
+ // 判断是否设置了样式
173
+ let isSetStyle = false
174
+
175
+ // 设置字体
176
+ if (mapStyle.glyphs !== layer.style.glyphs) {
177
+ mapStyle.glyphs = layer.style.glyphs
178
+ isSetStyle = true
179
+ }
180
+
181
+ // 设置雪碧图
182
+ if (mapStyle.sprite !== layer.style.sprite) {
183
+ mapStyle.sprite = layer.style.sprite
184
+ isSetStyle = true
185
+ }
186
+
187
+ // 更新样式
188
+ if (isSetStyle) {
189
+ innerView.setStyle(mapStyle)
190
+ // 更新样式后设置图层
191
+ innerView.on('style.load', function () {
192
+ // 添加矢量瓦片的Source
193
+ addSources(layerView)
194
+ // 添加矢量瓦片的Layer
195
+ addLayers(layerView)
196
+ // 执行回调函数
197
+ if (options.callback &amp;&amp; options.callback instanceof Function) {
198
+ options.callback(getLayers(layerView))
199
+ }
200
+ })
201
+ }
202
+ // 不用更新样式,直接添加图层
203
+ else {
204
+ // 添加矢量瓦片的Source
205
+ addSources(layerView)
206
+ // 添加矢量瓦片的Layer
207
+ addLayers(layerView)
208
+ // 执行回调函数
209
+ if (options.callback &amp;&amp; options.callback instanceof Function) {
210
+ options.callback(getLayers(layerView))
211
+ }
212
+ }
213
+ }
214
+
215
+ /**
216
+ * 根据服务基地址和图层初始化参数,构造最终的URL地址
217
+ * @param {String} url 服务基地址
218
+ * @param {Object} options 图层初始化参数
219
+ * @return {String} 最终的URL地址
220
+ * */
221
+ ArcGISVectorTileLayerUtil.initLayerUrl = function (url, options) {
222
+ const igsVersion = options.igsVersion
223
+ if (igsVersion === '1.0') {
224
+ url += '/{z}/{y}/{x}'
225
+ if (options.tokenKey &amp;&amp; options.tokenValue) {
226
+ url += `?${options.tokenKey}=${options.tokenValue}`
227
+ }
228
+ } else {
229
+ url = `${url}/tileImage/{z}/{y}/{x}?f=image`
230
+ if (options.tokenKey &amp;&amp; options.tokenValue) {
231
+ url += `&amp;${options.tokenKey}=${options.tokenValue}`
232
+ }
233
+ }
234
+ return url
235
+ }
236
+
237
+ /**
238
+ * 设置图层可见性
239
+ * @param {IGSTileLayerView} layerView 图层视图对象
240
+ * */
241
+ ArcGISVectorTileLayerUtil.setVisible = function (layerView) {
242
+ setVisible(layerView)
243
+ }
244
+
245
+ /**
246
+ * 设置图层透明度
247
+ * @param {IGSTileLayerView} layerView 图层视图对象
248
+ * */
249
+ ArcGISVectorTileLayerUtil.setOpacity = function (layerView) {
250
+ setOpacity(layerView)
251
+ }
252
+
253
+ /**
254
+ * 刷新图层
255
+ * @param {IGSTileLayerView} layerView 图层视图对象
256
+ * */
257
+ ArcGISVectorTileLayerUtil.refresh = function (layerView) {
258
+ // 删除图层
259
+ layerView.innerView.removeLayer(layerView.innerLayer.id)
260
+ // 删除source
261
+ layerView.innerView.removeSource(layerView.innerLayer.sourceID)
262
+ // 重新添加layer和source
263
+ layerView.innerLayer = ArcGISVectorTileLayerUtil.addIGSVectorTileLayer(
264
+ layerView,
265
+ {}
266
+ )
267
+ }
268
+
269
+ /**
270
+ * 删除图层
271
+ * @param {IGSTileLayerView} layerView 图层视图对象
272
+ * */
273
+ ArcGISVectorTileLayerUtil.removeLayer = function (layerView) {
274
+ removeLayer(layerView)
275
+ }
276
+
277
+ /**
278
+ * 设置图层的绘制属性
279
+ * @param {IGSTileLayerView} layerView 图层视图对象
280
+ * @param {Object} updateContent 事件内容
281
+ * */
282
+ ArcGISVectorTileLayerUtil.setPaintProperties = function (
283
+ layerView,
284
+ updateContent
285
+ ) {
286
+ const paintOptions = getPaintOptions(updateContent)
287
+ setPaintProperties(layerView, paintOptions.layerId, paintOptions.paints)
288
+ }
289
+
290
+ /**
291
+ * 设置图层的布局属性
292
+ * @param {IGSTileLayerView} layerView 图层视图对象
293
+ * @param {Object} updateContent 事件内容
294
+ * */
295
+ ArcGISVectorTileLayerUtil.setLayoutProperties = function (
296
+ layerView,
297
+ updateContent
298
+ ) {
299
+ const paintOptions = getPaintOptions(updateContent)
300
+ setLayoutProperties(layerView, paintOptions.layerId, paintOptions.paints)
301
+ }
302
+
303
+ /**
304
+ * 设置图层的过滤条件
305
+ * @param {IGSTileLayerView} layerView 图层视图对象
306
+ * @param {String} layerId 图层id
307
+ * @param {String} filter 过滤条件
308
+ * */
309
+ ArcGISVectorTileLayerUtil.setStyleLayerFilter = function (
310
+ layerView,
311
+ layerId,
312
+ filter
313
+ ) {
314
+ setFilter(layerView, layerId, filter)
315
+ }
316
+
317
+ /**
318
+ * 设置图层的显示范围
319
+ * @param {IGSTileLayerView} layerView 图层视图对象
320
+ * @param {String} layerId 图层id
321
+ * @param {Number} minZoom 最小显示范围
322
+ * @param {Number} maxZoom 最大显示范围
323
+ * */
324
+ ArcGISVectorTileLayerUtil.setStyleLayerZoomRange = function (
325
+ layerView,
326
+ layerId,
327
+ minZoom,
328
+ maxZoom
329
+ ) {
330
+ setLayerZoomRange(layerView, layerId, minZoom, maxZoom)
331
+ }
332
+
333
+ /**
334
+ * 更新所有矢量瓦片子图层
335
+ * @param {IGSTileLayerView} layerView 图层视图对象
336
+ * */
337
+ ArcGISVectorTileLayerUtil.updateStyleLayer = function (layerView) {
338
+ updateStyleLayer(layerView)
339
+ }
340
+
341
+ export default ArcGISVectorTileLayerUtil
342
+ </code></pre>
343
+ </article>
344
+ </section>
345
+
346
+
347
+
348
+
349
+ </div>
350
+
351
+ <footer class="footer">
352
+ <div class="content has-text-centered">
353
+ <p>文档生成<a href="https://github.com/jsdoc3/jsdoc">JSDoc 3.6.11</a></p>
354
+ <p class="sidebar-created-by">
355
+ <a href="http://www.smaryun.com" target="_blank">司马云</a> <span>© 2023 云生态圈</span>
356
+ <a href="http://192.168.82.89:8086/#/index" target="_blank">MapGIS Client for JavaScript</a>
357
+ </p>
358
+ </div>
359
+ </footer>
360
+
361
+ </div>
362
+ <div id="side-nav" class="side-nav">
363
+ <div style="margin-bottom: 10px;">
364
+ <img style="vertical-align: middle;margin-right: 10px;width: 30px;" src="./styles/anchor.png"/><a href="#page-title">构造函数</a>
365
+ </div>
366
+ <div style="margin-bottom: 10px;">
367
+ <img style="vertical-align: middle;margin-right: 10px;width: 30px;" src="./styles/anchor.png"/><a href="#member">成员变量</a>
368
+ </div>
369
+ <div style="margin-bottom: 10px;">
370
+ <img style="vertical-align: middle;margin-right: 10px;width: 30px;" src="./styles/anchor.png"/><a href="#function">方法</a>
371
+ </div>
372
+ <div>
373
+ <img style="vertical-align: middle;margin-right: 10px;width: 30px;" src="./styles/anchor.png"/><a href="#event">事件</a>
374
+ </div>
375
+ </div>
376
+ </div>
377
+ <script src="scripts/linenumber.js"> </script>
378
+
379
+ <script src="scripts/search.js"> </script>
380
+
381
+ </body>
382
+ </html>
@@ -0,0 +1,194 @@
1
+
2
+
3
+ <!DOCTYPE html>
4
+ <html lang="en">
5
+
6
+ <head>
7
+
8
+ <meta charset="utf-8">
9
+ <meta name="viewport" content="width=device-width, initial-scale=1">
10
+ <title>Client for JavaScript view/utils/EchartsLayerUtil.js</title>
11
+ <!--[if lt IE 9]>
12
+ <script src="//html5shiv.googlecode.com/svn/trunk/html5.js"></script>
13
+ <![endif]-->
14
+ <link type="text/css" rel="stylesheet" href="styles/app.min.css">
15
+ <link type="text/css" rel="stylesheet" href="styles/iframe.css">
16
+ <link type="text/css" rel="stylesheet" href="">
17
+
18
+
19
+ </head>
20
+
21
+
22
+
23
+ <body class="layout small-header">
24
+ <div id="stickyNavbarOverlay"></div>
25
+
26
+
27
+ <div class="top-nav">
28
+ <div class="inner">
29
+ <a id="hamburger" role="button" class="navbar-burger" aria-label="menu" aria-expanded="false">
30
+ <span aria-hidden="true"></span>
31
+ <span aria-hidden="true"></span>
32
+ <span aria-hidden="true"></span>
33
+ </a>
34
+ <div class="logo">
35
+
36
+ <h1> MapGIS Client for JavaScript API</h1>
37
+
38
+
39
+ </div>
40
+ <div class="menu">
41
+
42
+ <div class="navigation">
43
+
44
+
45
+ <a
46
+ class="link user-link "
47
+ href="/static/modules/common/api/common-mapgis/index.html"
48
+ >
49
+ Common
50
+ </a>
51
+
52
+ <a
53
+ class="link user-link "
54
+ href="/static/modules/cesium/api/cesium-mapgis/index.html"
55
+ >
56
+ Cesium
57
+ </a>
58
+
59
+ <a
60
+ class="link user-link "
61
+ href="/static/modules/mapboxgl/api/mapboxgl-mapgis/index.html"
62
+ >
63
+ MapboxGL
64
+ </a>
65
+
66
+ <a
67
+ class="link user-link "
68
+ href="/static/modules/leaflet/api/leaflet-mapgis/index.html"
69
+ >
70
+ Leaflet
71
+ </a>
72
+
73
+ <a
74
+ class="link user-link "
75
+ href="/static/modules/openlayers/api/openLayers-mapgis/index.html"
76
+ >
77
+ OpenLayers
78
+ </a>
79
+
80
+
81
+
82
+ </div>
83
+ </div>
84
+ </div>
85
+ </div>
86
+
87
+ <div id="main">
88
+ <div
89
+ class="sidebar "
90
+ id="sidebarNav"
91
+ >
92
+ <div>
93
+ <span class="mapgis-api-document-span"><a href="index.html">API文档</a></span>
94
+ </div>
95
+
96
+ <div class="search-wrapper">
97
+ <input id="search" type="text" placeholder="搜索文档..." class="input">
98
+ </div>
99
+
100
+ <nav>
101
+
102
+ <div class="category"><div style="font-weight: bold;vertical-align: middle;padding: 0.4rem 0;" class="mapgis-menu-span"><img style="width: 20px;margin-right: 6px;vertical-align: middle;" src="./styles/m.png" alt="">undefined</div><ul class="mapgis-sidebar-menus"><li><img style="width: 20px;margin-right: 6px;vertical-align: middle;" src="./styles/c.png" alt=""><a href="Popup.html">Popup</a><span style="display: none;"><p>二维场景信息弹窗(leaflet引擎)
103
+ 参考示例:
104
+ <a href='#MapView'>[初始化二维场景视图]</a>
105
+ [ES6引入方式]:<br/>
106
+ import { Popup } from '@mapgis/webclient-leaflet-plugin' <br/>
107
+ 自定义样式说明:<br/>
108
+ zondy-popup__content 弹窗容器样式<br/>
109
+ zondy-popup__tip 弹窗对话框箭头样式<br/>
110
+ zondy-popup__header 弹窗头部样式<br/>
111
+ zondy-popup__content 弹窗主体样式<br/>
112
+ zondy-popup__footer 弹窗底部样式<br/></p></span></li></ul><div style="font-weight: bold;vertical-align: middle;padding: 0.4rem 0;" class="mapgis-menu-span"><img style="width: 20px;margin-right: 6px;vertical-align: middle;" src="./styles/m.png" alt="">undefined</div><ul class="mapgis-sidebar-menus"><li><img style="width: 20px;margin-right: 6px;vertical-align: middle;" src="./styles/c.png" alt=""><a href="Screenshot.html">Screenshot</a><span style="display: none;"><p>打印工具</p></span></li></ul><div style="font-weight: bold;vertical-align: middle;padding: 0.4rem 0;" class="mapgis-menu-span"><img style="width: 20px;margin-right: 6px;vertical-align: middle;" src="./styles/m.png" alt="">草图编辑模块</div><ul class="mapgis-sidebar-menus"><li><img style="width: 20px;margin-right: 6px;vertical-align: middle;" src="./styles/c.png" alt=""><a href="SketchEditorMapboxgl.html">SketchEditorMapboxgl</a><span style="display: none;"><p>二维场景草图编辑类<br/>
113
+ <br>[ES5引入方式]:<br/>
114
+ const { SketchEditorMapboxgl } = Zondy <br/>
115
+ [ES6引入方式]:<br/>
116
+ import { SketchEditorMapboxgl } from &quot;@mapgis/webclient-leaflet-plugin&quot; <br/></p></span></li></ul></div>
117
+
118
+ </nav>
119
+ </div>
120
+ <div class="core" id="main-content-wrapper">
121
+ <div class="content">
122
+ <header id="page-title" class="page-title">
123
+ <span class="page-title-main">类名</span>
124
+ <span class="page-title-sub">view/utils/EchartsLayerUtil.js</span>
125
+ </header>
126
+
127
+
128
+
129
+
130
+
131
+ <section>
132
+ <article>
133
+ <pre class="prettyprint source linenums"><code>import EchartsLayer from './echarts/EchartsLayerPlugin'
134
+
135
+ class EchartsLayerUtil {}
136
+
137
+ EchartsLayerUtil.addEchartsLayer = function (layer, innerView) {
138
+ const eLayer = new EchartsLayer(innerView, layer.echartsOptions).addTo(
139
+ innerView
140
+ )
141
+ eLayer.id = layer.id
142
+ return eLayer
143
+ }
144
+
145
+ /**
146
+ * 移除图层
147
+ * @param {Object} layer 图层对象
148
+ * */
149
+ EchartsLayerUtil.removeLayer = function (layer) {
150
+ layer.remove()
151
+ }
152
+
153
+ export default EchartsLayerUtil
154
+ </code></pre>
155
+ </article>
156
+ </section>
157
+
158
+
159
+
160
+
161
+ </div>
162
+
163
+ <footer class="footer">
164
+ <div class="content has-text-centered">
165
+ <p>文档生成<a href="https://github.com/jsdoc3/jsdoc">JSDoc 3.6.11</a></p>
166
+ <p class="sidebar-created-by">
167
+ <a href="http://www.smaryun.com" target="_blank">司马云</a> <span>© 2023 云生态圈</span>
168
+ <a href="http://192.168.82.89:8086/#/index" target="_blank">MapGIS Client for JavaScript</a>
169
+ </p>
170
+ </div>
171
+ </footer>
172
+
173
+ </div>
174
+ <div id="side-nav" class="side-nav">
175
+ <div style="margin-bottom: 10px;">
176
+ <img style="vertical-align: middle;margin-right: 10px;width: 30px;" src="./styles/anchor.png"/><a href="#page-title">构造函数</a>
177
+ </div>
178
+ <div style="margin-bottom: 10px;">
179
+ <img style="vertical-align: middle;margin-right: 10px;width: 30px;" src="./styles/anchor.png"/><a href="#member">成员变量</a>
180
+ </div>
181
+ <div style="margin-bottom: 10px;">
182
+ <img style="vertical-align: middle;margin-right: 10px;width: 30px;" src="./styles/anchor.png"/><a href="#function">方法</a>
183
+ </div>
184
+ <div>
185
+ <img style="vertical-align: middle;margin-right: 10px;width: 30px;" src="./styles/anchor.png"/><a href="#event">事件</a>
186
+ </div>
187
+ </div>
188
+ </div>
189
+ <script src="scripts/linenumber.js"> </script>
190
+
191
+ <script src="scripts/search.js"> </script>
192
+
193
+ </body>
194
+ </html>