@mapgis/webclient-mapboxgl-plugin 17.0.6 → 17.2.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 (48) hide show
  1. package/README.md +11 -35
  2. package/dist/es5/webclient-common.min.js +15 -4
  3. package/dist/es5/webclient-mapboxgl-plugin.min.js +1 -1
  4. package/dist/webclient-mapboxgl-plugin-es6.min.js +1 -1
  5. package/documention/MapViewMapboxgl.html +1233 -8
  6. package/documention/Popup.html +3 -3
  7. package/documention/Screenshot.html +0 -11
  8. package/documention/SketchEditorMapboxgl.html +31 -2
  9. package/documention/index.html +4 -4
  10. package/documention/scripts/sideBar.js +16 -2
  11. package/package.json +3 -4
  12. package/documention/document_ArcGISVectorTileLayerView.js.html +0 -265
  13. package/documention/document_EchartsLayerView.js.html +0 -246
  14. package/documention/document_GraphicsLayerView.js.html +0 -314
  15. package/documention/document_IGSFeatureLayerView.js.html +0 -218
  16. package/documention/document_IGSMapImageLayerView.js.html +0 -240
  17. package/documention/document_IGSTileLayerView.js.html +0 -236
  18. package/documention/document_IGSVectorTileLayerView.js.html +0 -264
  19. package/documention/document_MapVLayerView.js.html +0 -247
  20. package/documention/document_WMSLayerView.js.html +0 -240
  21. package/documention/document_WMTSLayerView.js.html +0 -234
  22. package/documention/document_WebTileLayerView.js.html +0 -240
  23. package/documention/document_support_FeatureRenderView.js.html +0 -682
  24. package/documention/document_support_MapboxglGraphicsLayer.js.html +0 -1184
  25. package/documention/document_support_SourceMetaData.js.html +0 -223
  26. package/documention/document_support_Utils.js.html +0 -624
  27. package/documention/document_support_mapbox_mapboxCustomUtil.js.html +0 -322
  28. package/documention/sketchEditor_SketchEditorMapboxgl.js.html +0 -875
  29. package/documention/util_ConvertRendererToStyleLayerUtil.js.html +0 -844
  30. package/documention/util_MapboxglFeatureRender.js.html +0 -225
  31. package/documention/util_MapboxglPlugin.js.html +0 -284
  32. package/documention/view_MapViewMapboxgl.js.html +0 -1882
  33. package/documention/view_utils_ArcGISVectorTileLayerUtil.js.html +0 -382
  34. package/documention/view_utils_EchartsLayerUtil.js.html +0 -194
  35. package/documention/view_utils_IGSMapImageUtil.js.html +0 -373
  36. package/documention/view_utils_IGSTileLayerUtil.js.html +0 -285
  37. package/documention/view_utils_IGSVectorTileLayerUtil.js.html +0 -379
  38. package/documention/view_utils_MapVLayerUtil.js.html +0 -197
  39. package/documention/view_utils_Popup.js.html +0 -525
  40. package/documention/view_utils_Screenshot.js.html +0 -320
  41. package/documention/view_utils_WMSLayerUtil.js.html +0 -337
  42. package/documention/view_utils_WMTSLayerUtil.js.html +0 -331
  43. package/documention/view_utils_WebTileLayerUtil.js.html +0 -284
  44. package/documention/view_utils_echarts_EchartsLayerPlugin.js.html +0 -419
  45. package/documention/view_utils_mapV_MapVLayerPlugin.js.html +0 -527
  46. package/documention/view_utils_mapV_MapvBaseLayer.js.html +0 -477
  47. package/documention/view_utils_support_rasterLayerUtil.js.html +0 -244
  48. package/documention/view_utils_support_vectorLayerUtil.js.html +0 -503
@@ -116,7 +116,7 @@ zondy-popup__footer 弹窗底部样式<br/></p>
116
116
 
117
117
  <span class="param-type">
118
118
 
119
- <a link="MapView.html" onclick="getTypeHTML(event)" class="mapgis-link-name" title="MapView" MapView.html>MapView</a>
119
+ MapView
120
120
 
121
121
  </span>
122
122
 
@@ -551,7 +551,7 @@ mapView.popup.close(popupObj)
551
551
 
552
552
  <span class="param-type">
553
553
 
554
- <a link="MapView.html" onclick="getTypeHTML(event)" class="mapgis-link-name" title="MapView" MapView.html>MapView</a>
554
+ MapView
555
555
 
556
556
  </span>
557
557
 
@@ -950,7 +950,7 @@ mapView.popup.close(popupObj)
950
950
 
951
951
  <span class="param-type">
952
952
 
953
- <a link="MapView.html" onclick="getTypeHTML(event)" class="mapgis-link-name" title="MapView" MapView.html>MapView</a>
953
+ MapView
954
954
 
955
955
  </span>
956
956
 
@@ -310,17 +310,6 @@ mapView.ui.add(screenshot)</code></pre>
310
310
  </div>
311
311
 
312
312
 
313
- <h3 class="subsection-title">继承关系</h3>
314
-
315
-
316
-
317
-
318
- <ul>
319
- <li>Widget</li>
320
- </ul>
321
-
322
-
323
-
324
313
 
325
314
 
326
315
 
@@ -110,7 +110,7 @@ import { SketchEditorMapboxgl } from &quot;@mapgis/webclient-leaflet-plugin&quot
110
110
 
111
111
  <span class="param-type">
112
112
 
113
- <a link="MapView.html" onclick="getTypeHTML(event)" class="mapgis-link-name" title="MapView" MapView.html>MapView</a>
113
+ MapView
114
114
 
115
115
  </span>
116
116
  |
@@ -2392,7 +2392,7 @@ const newSketchEditors = SketchEditorMapboxgl.split(polygon,polyline)</code></pr
2392
2392
 
2393
2393
  <span class="code-name" id="start" style="font-size:30px">
2394
2394
 
2395
- start<span class="signature">(dataType)</span>
2395
+ start<span class="signature">(dataType, extendOptions)</span>
2396
2396
 
2397
2397
  </span>
2398
2398
  </h4>
@@ -2461,6 +2461,35 @@ const newSketchEditors = SketchEditorMapboxgl.split(polygon,polyline)</code></pr
2461
2461
 
2462
2462
 
2463
2463
 
2464
+
2465
+
2466
+ <tr class="deep-level-0">
2467
+
2468
+ <td class="name"><code>extendOptions</code></td>
2469
+
2470
+
2471
+ <td class="type">
2472
+
2473
+
2474
+ <span class="param-type">
2475
+
2476
+ Object
2477
+
2478
+ </span>
2479
+
2480
+
2481
+
2482
+
2483
+ </td>
2484
+
2485
+
2486
+
2487
+ <td class="description last"><p>草图编辑的扩展属性,可以通过该属性传入草图编辑额外需要的参数</p></td>
2488
+ </tr>
2489
+
2490
+
2491
+
2492
+
2464
2493
  </tbody>
2465
2494
  </table>
2466
2495
  </div>
@@ -110,7 +110,7 @@
110
110
  <br>[ES5引入方式]:<br/>
111
111
  Zondy.MapViewMapboxgl() <br/>
112
112
  [ES6引入方式]:<br/>
113
- import { MapViewMapboxgl } from '@mapgis/webclient-mapboxgl-plugin' <br/></p></span></li><div class="mapgis-link-detail" id="MapViewMapboxgl-detail"><div><a linkTo="#page-title" link="/static/modules/mapboxgl/api/mapboxgl-mapgis/MapViewMapboxgl.html" id="api-fold">构造函数</a></div><div><a linkTo="#function" link="/static/modules/mapboxgl/api/mapboxgl-mapgis/MapViewMapboxgl.html" id="api-fold" class="mapgis-link-name">方法</a></div><div><ul><li><a linkTo="#fromJSON" link="/static/modules/mapboxgl/api/mapboxgl-mapgis/MapViewMapboxgl.html" title="fromJSON" id="api-member" class="mapgis-link-name">fromJSON</a></li><li><a linkTo="#flyTo" link="/static/modules/mapboxgl/api/mapboxgl-mapgis/MapViewMapboxgl.html" title="flyTo" id="api-member" class="mapgis-link-name">flyTo</a></li><li><a linkTo="#getCenter" link="/static/modules/mapboxgl/api/mapboxgl-mapgis/MapViewMapboxgl.html" title="getCenter" id="api-member" class="mapgis-link-name">getCenter</a></li><li><a linkTo="#getExtent" link="/static/modules/mapboxgl/api/mapboxgl-mapgis/MapViewMapboxgl.html" title="getExtent" id="api-member" class="mapgis-link-name">getExtent</a></li><li><a linkTo="#getScale" link="/static/modules/mapboxgl/api/mapboxgl-mapgis/MapViewMapboxgl.html" title="getScale" id="api-member" class="mapgis-link-name">getScale</a></li><li><a linkTo="#getSize" link="/static/modules/mapboxgl/api/mapboxgl-mapgis/MapViewMapboxgl.html" title="getSize" id="api-member" class="mapgis-link-name">getSize</a></li><li><a linkTo="#getZoom" link="/static/modules/mapboxgl/api/mapboxgl-mapgis/MapViewMapboxgl.html" title="getZoom" id="api-member" class="mapgis-link-name">getZoom</a></li><li><a linkTo="#goTo" link="/static/modules/mapboxgl/api/mapboxgl-mapgis/MapViewMapboxgl.html" title="goTo" id="api-member" class="mapgis-link-name">goTo</a></li><li><a linkTo="#hitTest" link="/static/modules/mapboxgl/api/mapboxgl-mapgis/MapViewMapboxgl.html" title="hitTest" id="api-member" class="mapgis-link-name">hitTest</a></li><li><a linkTo="#takeScreenshot" link="/static/modules/mapboxgl/api/mapboxgl-mapgis/MapViewMapboxgl.html" title="takeScreenshot" id="api-member" class="mapgis-link-name">takeScreenshot</a></li><li><a linkTo="#toJSON" link="/static/modules/mapboxgl/api/mapboxgl-mapgis/MapViewMapboxgl.html" title="toJSON" id="api-member" class="mapgis-link-name">toJSON</a></li><li><a linkTo="#toMap" link="/static/modules/mapboxgl/api/mapboxgl-mapgis/MapViewMapboxgl.html" title="toMap" id="api-member" class="mapgis-link-name">toMap</a></li><li><a linkTo="#toScreen" link="/static/modules/mapboxgl/api/mapboxgl-mapgis/MapViewMapboxgl.html" title="toScreen" id="api-member" class="mapgis-link-name">toScreen</a></li></ul></div><div><a linkTo="#member" link="/static/modules/mapboxgl/api/mapboxgl-mapgis/MapViewMapboxgl.html" id="api-fold" class="mapgis-link-name">成员变量</a></div><div><ul><li><a linkTo="#engineType" link="/static/modules/mapboxgl/api/mapboxgl-mapgis/MapViewMapboxgl.html" title="engineType" id="api-member" class="mapgis-link-name">engineType</a></li></ul></div></div><li class="mapgis-link"><img style="width: 20px;margin-right: 6px;vertical-align: middle;" src="./styles/c.png" alt=""><a class="mapgis-link-name" link="/static/modules/mapboxgl/api/mapboxgl-mapgis/Popup.html"id="Popup" title="Popup" Popup.html>Popup</a><img id="Popup-detail-arrow" onclick="toggleLinkDetail('Popup-detail')" style="width: 20px;margin-right: 6px;vertical-align: middle;" src="./styles/up-arrow.png" alt=""><span style="display: none;"><p>二维场景信息弹窗(mapboxgl引擎)
113
+ import { MapViewMapboxgl } from '@mapgis/webclient-mapboxgl-plugin' <br/></p></span></li><div class="mapgis-link-detail" id="MapViewMapboxgl-detail"><div><a linkTo="#page-title" link="/static/modules/mapboxgl/api/mapboxgl-mapgis/MapViewMapboxgl.html" id="api-fold">构造函数</a></div><div><a linkTo="#function" link="/static/modules/mapboxgl/api/mapboxgl-mapgis/MapViewMapboxgl.html" id="api-fold" class="mapgis-link-name">方法</a></div><div><ul><li><a linkTo="#fromJSON" link="/static/modules/mapboxgl/api/mapboxgl-mapgis/MapViewMapboxgl.html" title="fromJSON" id="api-member" class="mapgis-link-name">fromJSON</a></li><li><a linkTo="#flyTo" link="/static/modules/mapboxgl/api/mapboxgl-mapgis/MapViewMapboxgl.html" title="flyTo" id="api-member" class="mapgis-link-name">flyTo</a></li><li><a linkTo="#getCenter" link="/static/modules/mapboxgl/api/mapboxgl-mapgis/MapViewMapboxgl.html" title="getCenter" id="api-member" class="mapgis-link-name">getCenter</a></li><li><a linkTo="#getExtent" link="/static/modules/mapboxgl/api/mapboxgl-mapgis/MapViewMapboxgl.html" title="getExtent" id="api-member" class="mapgis-link-name">getExtent</a></li><li><a linkTo="#getScale" link="/static/modules/mapboxgl/api/mapboxgl-mapgis/MapViewMapboxgl.html" title="getScale" id="api-member" class="mapgis-link-name">getScale</a></li><li><a linkTo="#getSize" link="/static/modules/mapboxgl/api/mapboxgl-mapgis/MapViewMapboxgl.html" title="getSize" id="api-member" class="mapgis-link-name">getSize</a></li><li><a linkTo="#getZoom" link="/static/modules/mapboxgl/api/mapboxgl-mapgis/MapViewMapboxgl.html" title="getZoom" id="api-member" class="mapgis-link-name">getZoom</a></li><li><a linkTo="#goTo" link="/static/modules/mapboxgl/api/mapboxgl-mapgis/MapViewMapboxgl.html" title="goTo" id="api-member" class="mapgis-link-name">goTo</a></li><li><a linkTo="#hitTest" link="/static/modules/mapboxgl/api/mapboxgl-mapgis/MapViewMapboxgl.html" title="hitTest" id="api-member" class="mapgis-link-name">hitTest</a></li><li><a linkTo="#takeScreenshot" link="/static/modules/mapboxgl/api/mapboxgl-mapgis/MapViewMapboxgl.html" title="takeScreenshot" id="api-member" class="mapgis-link-name">takeScreenshot</a></li><li><a linkTo="#toJSON" link="/static/modules/mapboxgl/api/mapboxgl-mapgis/MapViewMapboxgl.html" title="toJSON" id="api-member" class="mapgis-link-name">toJSON</a></li><li><a linkTo="#toMap" link="/static/modules/mapboxgl/api/mapboxgl-mapgis/MapViewMapboxgl.html" title="toMap" id="api-member" class="mapgis-link-name">toMap</a></li><li><a linkTo="#toScreen" link="/static/modules/mapboxgl/api/mapboxgl-mapgis/MapViewMapboxgl.html" title="toScreen" id="api-member" class="mapgis-link-name">toScreen</a></li></ul></div><div><a linkTo="#member" link="/static/modules/mapboxgl/api/mapboxgl-mapgis/MapViewMapboxgl.html" id="api-fold" class="mapgis-link-name">成员变量</a></div><div><ul><li><a linkTo="#_spatialReference" link="/static/modules/mapboxgl/api/mapboxgl-mapgis/MapViewMapboxgl.html" title="_spatialReference" id="api-member" class="mapgis-link-name">_spatialReference</a></li><li><a linkTo="#center" link="/static/modules/mapboxgl/api/mapboxgl-mapgis/MapViewMapboxgl.html" title="center" id="api-member" class="mapgis-link-name">center</a></li><li><a linkTo="#engineType" link="/static/modules/mapboxgl/api/mapboxgl-mapgis/MapViewMapboxgl.html" title="engineType" id="api-member" class="mapgis-link-name">engineType</a></li><li><a linkTo="#extent" link="/static/modules/mapboxgl/api/mapboxgl-mapgis/MapViewMapboxgl.html" title="extent" id="api-member" class="mapgis-link-name">extent</a></li><li><a linkTo="#fullExtent" link="/static/modules/mapboxgl/api/mapboxgl-mapgis/MapViewMapboxgl.html" title="fullExtent" id="api-member" class="mapgis-link-name">fullExtent</a></li><li><a linkTo="#height" link="/static/modules/mapboxgl/api/mapboxgl-mapgis/MapViewMapboxgl.html" title="height" id="api-member" class="mapgis-link-name">height</a></li><li><a linkTo="#maxScale" link="/static/modules/mapboxgl/api/mapboxgl-mapgis/MapViewMapboxgl.html" title="maxScale" id="api-member" class="mapgis-link-name">maxScale</a></li><li><a linkTo="#minScale" link="/static/modules/mapboxgl/api/mapboxgl-mapgis/MapViewMapboxgl.html" title="minScale" id="api-member" class="mapgis-link-name">minScale</a></li><li><a linkTo="#popup" link="/static/modules/mapboxgl/api/mapboxgl-mapgis/MapViewMapboxgl.html" title="popup" id="api-member" class="mapgis-link-name">popup</a></li><li><a linkTo="#scale" link="/static/modules/mapboxgl/api/mapboxgl-mapgis/MapViewMapboxgl.html" title="scale" id="api-member" class="mapgis-link-name">scale</a></li><li><a linkTo="#spatialReferenceLocked" link="/static/modules/mapboxgl/api/mapboxgl-mapgis/MapViewMapboxgl.html" title="spatialReferenceLocked" id="api-member" class="mapgis-link-name">spatialReferenceLocked</a></li><li><a linkTo="#stationary" link="/static/modules/mapboxgl/api/mapboxgl-mapgis/MapViewMapboxgl.html" title="stationary" id="api-member" class="mapgis-link-name">stationary</a></li><li><a linkTo="#width" link="/static/modules/mapboxgl/api/mapboxgl-mapgis/MapViewMapboxgl.html" title="width" id="api-member" class="mapgis-link-name">width</a></li><li><a linkTo="#zoom" link="/static/modules/mapboxgl/api/mapboxgl-mapgis/MapViewMapboxgl.html" title="zoom" id="api-member" class="mapgis-link-name">zoom</a></li></ul></div></div><li class="mapgis-link"><img style="width: 20px;margin-right: 6px;vertical-align: middle;" src="./styles/c.png" alt=""><a class="mapgis-link-name" link="/static/modules/mapboxgl/api/mapboxgl-mapgis/Popup.html"id="Popup" title="Popup" Popup.html>Popup</a><img id="Popup-detail-arrow" onclick="toggleLinkDetail('Popup-detail')" style="width: 20px;margin-right: 6px;vertical-align: middle;" src="./styles/up-arrow.png" alt=""><span style="display: none;"><p>二维场景信息弹窗(mapboxgl引擎)
114
114
  参考示例:
115
115
  <a href='#MapView'>[初始化二维场景视图]</a>
116
116
  [ES6引入方式]:<br/>
@@ -177,7 +177,7 @@ import { SketchEditorMapboxgl } from &quot;@mapgis/webclient-leaflet-plugin&quot
177
177
  </ol>
178
178
  <ul>
179
179
  <li>
180
- <p>官网(website):<a href="http://webclient.smaryun.com/#/index">http://webclient.smaryun.com/#/index</a></p>
180
+ <p>官网(website):<a href="http://192.168.82.89:8086/#/index">http://192.168.82.89:8086/#/index</a></p>
181
181
  </li>
182
182
  <li>
183
183
  <p>源码(source code):<a href="https://github.com/ParnDeedlit/WebClient-mapboxgl">https://github.com/ParnDeedlit/WebClient-MapboxGL</a></p>
@@ -220,8 +220,8 @@ import { SketchEditorMapboxgl } from &quot;@mapgis/webclient-leaflet-plugin&quot
220
220
  <div class="content has-text-centered">
221
221
  <p>文档生成<a href="https://github.com/jsdoc3/jsdoc">JSDoc 17.1.1</a></p>
222
222
  <p class="sidebar-created-by">
223
- <a href="http://www.smaryun.com" target="_blank">司马云</a> <span>© 2023 云生态圈</span>
224
- <a href="http://webclient.smaryun.com/#/index" target="_blank">MapGIS Client for JavaScript</a>
223
+ <a href="https://www.smaryun.com" target="_blank" rel="noopener noreferrer">司马云</a> <span>© 2020 云生态圈</span>
224
+ <a href="http://develop.smaryun.com:8899/" target="_blank" rel="noopener noreferrer">MapGIS Client for JavaScript</a>
225
225
  </p>
226
226
  </div>
227
227
  </footer>
@@ -61,7 +61,7 @@ function getTypeHTML(e) {
61
61
  break
62
62
  }
63
63
  }
64
- const _baseUrl = window.location.href.split('/index.html')[0]
64
+ const _baseUrl = window.location.href.split('#')[0]
65
65
  fetch(_baseUrl + '/' + link, {
66
66
  method: 'GET',
67
67
  })
@@ -111,7 +111,21 @@ function getLinkName(url) {
111
111
  targets.forEach(function (_target) {
112
112
  _target.addEventListener('click', function (e) {
113
113
  const _baseUrl = getBaseUrl(window.location.href)
114
- fetch(_baseUrl + e.target.attributes[1].value, {
114
+ let isGlobe = false, globePath
115
+ for (let i = 0; i < e.target.attributes.length; i++) {
116
+ if(e.target.attributes[i].name.indexOf('global.html') > -1) {
117
+ isGlobe = true
118
+ globePath = e.target.attributes[i].name
119
+ break
120
+ }
121
+ }
122
+ let path
123
+ if (isGlobe) {
124
+ path = '/' + globePath
125
+ } else {
126
+ path = e.target.attributes[1].value
127
+ }
128
+ fetch(_baseUrl + path, {
115
129
  method: 'GET',
116
130
  })
117
131
  .then(response => response.text())
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@mapgis/webclient-mapboxgl-plugin",
3
- "version" : "17.0.6",
3
+ "version" : "17.2.0",
4
4
  "description": "",
5
5
  "main": "dist/webclient-mapboxgl-plugin-es6.min.js",
6
6
  "scripts": {},
@@ -11,10 +11,9 @@
11
11
  "mapboxgl"
12
12
  ],
13
13
  "author": "Wuhan Zondy Cyber Science&Technology Co.Ltd.",
14
- "license": "Apache-2.0",
15
14
  "dependencies": {
16
- "@mapgis/mapbox-gl": "^17.0.0",
17
- "@mapgis/webclient-common": "^17.0.0"
15
+ "@mapgis/mapbox-gl": "^17.2.0",
16
+ "@mapgis/webclient-common": "^17.2.0"
18
17
  },
19
18
  "peerDependencies": {},
20
19
  "devDependencies": {}
@@ -1,265 +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/ArcGISVectorTileLayerView.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/ArcGISVectorTileLayerView.js</span>
125
- </header>
126
-
127
-
128
-
129
-
130
-
131
- <section>
132
- <article>
133
- <pre class="prettyprint source linenums"><code>import { LayerView } from '@mapgis/webclient-common'
134
- import { ArcGISVectorTileLayerUtil } from '../view/utils'
135
-
136
- class ArcGISVectorTileLayerView extends LayerView {
137
- /**
138
- * 添加图层视图
139
- * @param {LayerEvent} 图层事件
140
- * @return {Promise&lt;LayerView>} 图层视图
141
- */
142
- onAdd() {
143
- const layer = this.layer
144
- const self = this
145
- ArcGISVectorTileLayerUtil.addIGSVectorTileLayer(this, {
146
- callback(layers) {
147
- for (let i = 0; i &lt; layers.length; i++) {
148
- layers[i].commonLayerId = layer.id
149
- }
150
- self.innerLayer = layers
151
- }
152
- })
153
- return Promise.resolve(this)
154
- }
155
-
156
- /**
157
- * 移除图层视图
158
- * @param {LayerEvent} 图层事件
159
- * @return {Promise&lt;LayerView>} 图层视图
160
- */
161
- onRemove() {
162
- ArcGISVectorTileLayerUtil.removeLayer(this)
163
- return Promise.resolve(this)
164
- }
165
-
166
- /**
167
- * 更新图层视图
168
- * @param {LayerViewUpdateEvent} event 图层事件
169
- * @return {Promise&lt;LayerView>} 图层视图
170
- */
171
- onUpdate(event) {
172
- // 确保有updateContent
173
- if (event.updateContent) {
174
- for (let i = 0; i &lt; event.updateContent.length; i++) {
175
- const updateContent = event.updateContent[i]
176
- // 有updateContent
177
- if (updateContent) {
178
- switch (updateContent.name) {
179
- // 更新主图层可见性
180
- case 'visible':
181
- ArcGISVectorTileLayerUtil.setVisible(this)
182
- break
183
- // 更新透明度
184
- case 'opacity':
185
- ArcGISVectorTileLayerUtil.setOpacity(this)
186
- break
187
- // 更新绘制样式
188
- case 'setPaintProperties':
189
- ArcGISVectorTileLayerUtil.setPaintProperties(this, updateContent)
190
- break
191
- // 更新布局样式
192
- case 'setLayoutProperties':
193
- ArcGISVectorTileLayerUtil.setLayoutProperties(this, updateContent)
194
- break
195
- // 更新过滤条件
196
- case 'setStyleLayerFilter':
197
- ArcGISVectorTileLayerUtil.setStyleLayerFilter(this, updateContent)
198
- break
199
- // 更新显示范围
200
- case 'setStyleLayerZoomRange':
201
- ArcGISVectorTileLayerUtil.setStyleLayerZoomRange(
202
- this,
203
- updateContent
204
- )
205
- break
206
- // 更新所有子图层
207
- case 'setStyleLayer':
208
- ArcGISVectorTileLayerUtil.updateStyleLayer(this)
209
- break
210
- // 删除子图层
211
- case 'deleteStyleLayer': {
212
- ArcGISVectorTileLayerUtil.updateStyleLayer(this)
213
- break
214
- }
215
- default:
216
- break
217
- }
218
- }
219
- }
220
- }
221
- return Promise.resolve(this)
222
- }
223
- }
224
- export default ArcGISVectorTileLayerView
225
- </code></pre>
226
- </article>
227
- </section>
228
-
229
-
230
-
231
-
232
- </div>
233
-
234
- <footer class="footer">
235
- <div class="content has-text-centered">
236
- <p>文档生成<a href="https://github.com/jsdoc3/jsdoc">JSDoc 3.6.11</a></p>
237
- <p class="sidebar-created-by">
238
- <a href="http://www.smaryun.com" target="_blank">司马云</a> <span>© 2023 云生态圈</span>
239
- <a href="http://192.168.82.89:8086/#/index" target="_blank">MapGIS Client for JavaScript</a>
240
- </p>
241
- </div>
242
- </footer>
243
-
244
- </div>
245
- <div id="side-nav" class="side-nav">
246
- <div style="margin-bottom: 10px;">
247
- <img style="vertical-align: middle;margin-right: 10px;width: 30px;" src="./styles/anchor.png"/><a href="#page-title">构造函数</a>
248
- </div>
249
- <div style="margin-bottom: 10px;">
250
- <img style="vertical-align: middle;margin-right: 10px;width: 30px;" src="./styles/anchor.png"/><a href="#member">成员变量</a>
251
- </div>
252
- <div style="margin-bottom: 10px;">
253
- <img style="vertical-align: middle;margin-right: 10px;width: 30px;" src="./styles/anchor.png"/><a href="#function">方法</a>
254
- </div>
255
- <div>
256
- <img style="vertical-align: middle;margin-right: 10px;width: 30px;" src="./styles/anchor.png"/><a href="#event">事件</a>
257
- </div>
258
- </div>
259
- </div>
260
- <script src="scripts/linenumber.js"> </script>
261
-
262
- <script src="scripts/search.js"> </script>
263
-
264
- </body>
265
- </html>