@mapgis/webclient-mapboxgl-plugin 17.0.6 → 17.0.7

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 (42) hide show
  1. package/README.md +8 -0
  2. package/dist/es5/webclient-common.min.js +2 -2
  3. package/dist/es5/webclient-mapboxgl-plugin.min.js +1 -1
  4. package/dist/webclient-mapboxgl-plugin-es6.min.js +1 -1
  5. package/package.json +1 -1
  6. package/documention/document_ArcGISVectorTileLayerView.js.html +0 -265
  7. package/documention/document_EchartsLayerView.js.html +0 -246
  8. package/documention/document_GraphicsLayerView.js.html +0 -314
  9. package/documention/document_IGSFeatureLayerView.js.html +0 -218
  10. package/documention/document_IGSMapImageLayerView.js.html +0 -240
  11. package/documention/document_IGSTileLayerView.js.html +0 -236
  12. package/documention/document_IGSVectorTileLayerView.js.html +0 -264
  13. package/documention/document_MapVLayerView.js.html +0 -247
  14. package/documention/document_WMSLayerView.js.html +0 -240
  15. package/documention/document_WMTSLayerView.js.html +0 -234
  16. package/documention/document_WebTileLayerView.js.html +0 -240
  17. package/documention/document_support_FeatureRenderView.js.html +0 -682
  18. package/documention/document_support_MapboxglGraphicsLayer.js.html +0 -1184
  19. package/documention/document_support_SourceMetaData.js.html +0 -223
  20. package/documention/document_support_Utils.js.html +0 -624
  21. package/documention/document_support_mapbox_mapboxCustomUtil.js.html +0 -322
  22. package/documention/sketchEditor_SketchEditorMapboxgl.js.html +0 -875
  23. package/documention/util_ConvertRendererToStyleLayerUtil.js.html +0 -844
  24. package/documention/util_MapboxglFeatureRender.js.html +0 -225
  25. package/documention/util_MapboxglPlugin.js.html +0 -284
  26. package/documention/view_MapViewMapboxgl.js.html +0 -1882
  27. package/documention/view_utils_ArcGISVectorTileLayerUtil.js.html +0 -382
  28. package/documention/view_utils_EchartsLayerUtil.js.html +0 -194
  29. package/documention/view_utils_IGSMapImageUtil.js.html +0 -373
  30. package/documention/view_utils_IGSTileLayerUtil.js.html +0 -285
  31. package/documention/view_utils_IGSVectorTileLayerUtil.js.html +0 -379
  32. package/documention/view_utils_MapVLayerUtil.js.html +0 -197
  33. package/documention/view_utils_Popup.js.html +0 -525
  34. package/documention/view_utils_Screenshot.js.html +0 -320
  35. package/documention/view_utils_WMSLayerUtil.js.html +0 -337
  36. package/documention/view_utils_WMTSLayerUtil.js.html +0 -331
  37. package/documention/view_utils_WebTileLayerUtil.js.html +0 -284
  38. package/documention/view_utils_echarts_EchartsLayerPlugin.js.html +0 -419
  39. package/documention/view_utils_mapV_MapVLayerPlugin.js.html +0 -527
  40. package/documention/view_utils_mapV_MapvBaseLayer.js.html +0 -477
  41. package/documention/view_utils_support_rasterLayerUtil.js.html +0 -244
  42. package/documention/view_utils_support_vectorLayerUtil.js.html +0 -503
@@ -1,314 +0,0 @@
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 document/GraphicsLayerView.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">document/GraphicsLayerView.js</span>
125
- </header>
126
-
127
-
128
-
129
-
130
-
131
- <section>
132
- <article>
133
- <pre class="prettyprint source linenums"><code>import { BaseGraphicsLayerView, FeatureSet } from '@mapgis/webclient-common'
134
- import MapboxglGraphicsLayer from './support/MapboxglGraphicsLayer'
135
-
136
- class GraphicsLayerView extends BaseGraphicsLayerView {
137
- /**
138
- * 添加图层视图
139
- * @param {LayerEvent} 图层事件
140
- * @return {Promise&lt;LayerView>} 图层视图
141
- */
142
- onAdd(event) {
143
- const layer = this.layer
144
- const innerView = this.innerView
145
- const features = layer.graphics.items || []
146
- const self = this
147
- self.innerLayer = new MapboxglGraphicsLayer({
148
- id: layer.id,
149
- opacity: layer._opacity,
150
- // 初始化是否可见
151
- visible: this._getLayerViewVisible()
152
- })
153
- return self.innerLayer.onAdd(innerView).then(() => {
154
- self.innerLayer.commonLayerId = layer.id
155
- // 添加要素
156
- self._addFeature(self.innerLayer, features)
157
- return Promise.resolve(this)
158
- })
159
- }
160
-
161
- /**
162
- * 移除图层视图
163
- * @param {LayerEvent} 图层事件
164
- * @return {Promise&lt;LayerView>} 图层视图
165
- */
166
- onRemove(event) {
167
- this.innerLayer.onRemove(this.innerView)
168
- this.innerLayer = null
169
- return Promise.resolve(this)
170
- }
171
-
172
- /**
173
- * 更新图层视图
174
- * @param {LayerViewUpdateEvent} 图层事件
175
- * @return {Promise&lt;LayerView>} 图层视图
176
- */
177
- onUpdate(event) {
178
- const layer = this.layer
179
- const innerLayer = this.innerLayer
180
- if (event.updateContent &amp;&amp; innerLayer) {
181
- event.updateContent.forEach((layerUpdateCotent) => {
182
- if (
183
- layerUpdateCotent &amp;&amp;
184
- layerUpdateCotent.operationType === 'property'
185
- ) {
186
- switch (layerUpdateCotent.name) {
187
- case 'opacity': {
188
- innerLayer.opacity = layer._opacity
189
- break
190
- }
191
- case 'visible': {
192
- const updateVisibleValue =
193
- layerUpdateCotent.params &amp;&amp; layerUpdateCotent.params.length > 0
194
- ? layerUpdateCotent.params[0]
195
- : layer.visible
196
- const visible = this._getLayerViewVisible(updateVisibleValue)
197
- innerLayer.visible = visible
198
- break
199
- }
200
- default: {
201
- break
202
- }
203
- }
204
- }
205
- if (layerUpdateCotent &amp;&amp; layerUpdateCotent.operationType === 'method') {
206
- switch (layerUpdateCotent.name) {
207
- case 'add': {
208
- const params = layerUpdateCotent.params
209
- this._addFeature(innerLayer, params[0])
210
- break
211
- }
212
- case 'remove': {
213
- const params = layerUpdateCotent.params
214
- this._removeFeature(innerLayer, params[0])
215
- break
216
- }
217
- case 'addMany': {
218
- const params = layerUpdateCotent.params
219
- let features = params[0]
220
- if (features instanceof FeatureSet) {
221
- features = features.features
222
- }
223
- this._addFeature(innerLayer, features)
224
- break
225
- }
226
- case 'removeMany': {
227
- const params = layerUpdateCotent.params
228
- const features = params[0]
229
- this._removeFeature(innerLayer, features)
230
- break
231
- }
232
- case 'removeAll': {
233
- innerLayer.removeAll()
234
- break
235
- }
236
- default: {
237
- break
238
- }
239
- }
240
- }
241
- })
242
- }
243
- return Promise.resolve(this)
244
- }
245
-
246
- /**
247
- * @description 添加要素
248
- * @param {MapboxglGraphicsLayer} innerLayer
249
- * @param {Array&lt;Feature>|Feature} feature
250
- * @return {*}
251
- */
252
- _addFeature(innerLayer, feature) {
253
- const features = Array.isArray(feature) ? feature : [feature]
254
- features.forEach(() => {
255
- if (feature.geometry &amp;&amp; !feature.geometry.spatialReference) {
256
- feature.geometry.spatialReference = this.layer.spatialReference
257
- }
258
- })
259
- this.render.drawFeature(innerLayer, features)
260
- }
261
-
262
- /**
263
- * @description 添加要素
264
- * @param {MapboxglGraphicsLayer} innerLayer
265
- * @param {FeaArray&lt;Feature>|Featureture} feature
266
- * @return {*}
267
- */
268
- _removeFeature(innerLayer, feature) {
269
- const features = Array.isArray(feature) ? feature : [feature]
270
- this.render.clearFeature(innerLayer, features)
271
- }
272
- }
273
- export default GraphicsLayerView
274
- </code></pre>
275
- </article>
276
- </section>
277
-
278
-
279
-
280
-
281
- </div>
282
-
283
- <footer class="footer">
284
- <div class="content has-text-centered">
285
- <p>文档生成<a href="https://github.com/jsdoc3/jsdoc">JSDoc 3.6.11</a></p>
286
- <p class="sidebar-created-by">
287
- <a href="http://www.smaryun.com" target="_blank">司马云</a> <span>© 2023 云生态圈</span>
288
- <a href="http://192.168.82.89:8086/#/index" target="_blank">MapGIS Client for JavaScript</a>
289
- </p>
290
- </div>
291
- </footer>
292
-
293
- </div>
294
- <div id="side-nav" class="side-nav">
295
- <div style="margin-bottom: 10px;">
296
- <img style="vertical-align: middle;margin-right: 10px;width: 30px;" src="./styles/anchor.png"/><a href="#page-title">构造函数</a>
297
- </div>
298
- <div style="margin-bottom: 10px;">
299
- <img style="vertical-align: middle;margin-right: 10px;width: 30px;" src="./styles/anchor.png"/><a href="#member">成员变量</a>
300
- </div>
301
- <div style="margin-bottom: 10px;">
302
- <img style="vertical-align: middle;margin-right: 10px;width: 30px;" src="./styles/anchor.png"/><a href="#function">方法</a>
303
- </div>
304
- <div>
305
- <img style="vertical-align: middle;margin-right: 10px;width: 30px;" src="./styles/anchor.png"/><a href="#event">事件</a>
306
- </div>
307
- </div>
308
- </div>
309
- <script src="scripts/linenumber.js"> </script>
310
-
311
- <script src="scripts/search.js"> </script>
312
-
313
- </body>
314
- </html>
@@ -1,218 +0,0 @@
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 document/IGSFeatureLayerView.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">document/IGSFeatureLayerView.js</span>
125
- </header>
126
-
127
-
128
-
129
-
130
-
131
- <section>
132
- <article>
133
- <pre class="prettyprint source linenums"><code>import FeatureRenderView from './support/FeatureRenderView'
134
-
135
- class IGSFeatureLayerView extends FeatureRenderView {
136
- _processData() {
137
- const layer = this.layer
138
- // (默认查询100000条要素)
139
- const queryCount = 100000
140
- const query = layer._createQueryOption()
141
- query.resultRecordCount = queryCount
142
- return layer.queryFeatures(query).then((res) => {
143
- return res
144
- })
145
- }
146
-
147
- /**
148
- * 添加图层视图
149
- * @param {LayerEvent} event 图层事件
150
- * @return {Promise&lt;LayerView>} 图层视图
151
- */
152
- onAdd(event) {
153
- const layer = this.layer
154
-
155
- // 设置渲染模式
156
- if (layer.renderMode === 'server') {
157
- } else {
158
- return super.onAdd(event)
159
- }
160
- }
161
-
162
- /**
163
- * 移除图层视图
164
- * @param {LayerEvent} 图层事件
165
- * @return {Promise&lt;LayerView>} 图层视图
166
- */
167
- onRemove(event) {
168
- const self = this
169
- const layer = this.layer
170
- if (layer.gdbp) {
171
- this.innerView.removeLayer(this.innerLayer)
172
- return Promise.resolve(self)
173
- }
174
- return super.onRemove(event)
175
- }
176
- }
177
- export default IGSFeatureLayerView
178
- </code></pre>
179
- </article>
180
- </section>
181
-
182
-
183
-
184
-
185
- </div>
186
-
187
- <footer class="footer">
188
- <div class="content has-text-centered">
189
- <p>文档生成<a href="https://github.com/jsdoc3/jsdoc">JSDoc 3.6.11</a></p>
190
- <p class="sidebar-created-by">
191
- <a href="http://www.smaryun.com" target="_blank">司马云</a> <span>© 2023 云生态圈</span>
192
- <a href="http://192.168.82.89:8086/#/index" target="_blank">MapGIS Client for JavaScript</a>
193
- </p>
194
- </div>
195
- </footer>
196
-
197
- </div>
198
- <div id="side-nav" class="side-nav">
199
- <div style="margin-bottom: 10px;">
200
- <img style="vertical-align: middle;margin-right: 10px;width: 30px;" src="./styles/anchor.png"/><a href="#page-title">构造函数</a>
201
- </div>
202
- <div style="margin-bottom: 10px;">
203
- <img style="vertical-align: middle;margin-right: 10px;width: 30px;" src="./styles/anchor.png"/><a href="#member">成员变量</a>
204
- </div>
205
- <div style="margin-bottom: 10px;">
206
- <img style="vertical-align: middle;margin-right: 10px;width: 30px;" src="./styles/anchor.png"/><a href="#function">方法</a>
207
- </div>
208
- <div>
209
- <img style="vertical-align: middle;margin-right: 10px;width: 30px;" src="./styles/anchor.png"/><a href="#event">事件</a>
210
- </div>
211
- </div>
212
- </div>
213
- <script src="scripts/linenumber.js"> </script>
214
-
215
- <script src="scripts/search.js"> </script>
216
-
217
- </body>
218
- </html>