@mapgis/webclient-cesium-plugin 17.0.4 → 17.0.5

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 (33) hide show
  1. package/README.md +17 -0
  2. package/dist/es5/webclient-cesium-plugin.min.js +2 -2
  3. package/dist/es5/webclient-common.min.js +1 -1
  4. package/dist/webclient-cesium-plugin-es6.min.js +2 -2
  5. package/documention/ArcGISMapServerImageryProvider.html +112 -36
  6. package/documention/ArcGISTileServerImageryProvider.html +76 -24
  7. package/documention/CustomTilingScheme.html +248 -68
  8. package/documention/DynamicEntityVisualizer.html +18 -6
  9. package/documention/DynamicLabelLayer.html +168 -44
  10. package/documention/GeoJSONLayerUtil.html +21 -5
  11. package/documention/GraphicsLayerUtil.html +21 -5
  12. package/documention/HashMap.html +80 -16
  13. package/documention/IGSFeatureLayerUtil.html +21 -5
  14. package/documention/IGSSceneLayerUtil.html +178 -54
  15. package/documention/MapGISMapServerImageryProvider.html +334 -90
  16. package/documention/MapGISTerrainProvider.html +336 -80
  17. package/documention/MapGISTileServerImageryProvider.html +308 -80
  18. package/documention/MapGISVectorTileImageryProvider.html +407 -103
  19. package/documention/Popup.html +119 -31
  20. package/documention/SceneViewCesium.html +575 -176
  21. package/documention/Screenshot.html +30 -10
  22. package/documention/SketchEditorCesium.html +135 -43
  23. package/documention/UrlTemplateImageryProvider.html +23 -7
  24. package/documention/WFSLayerUtil.html +21 -5
  25. package/documention/WebMapServiceImageryProvider.html +22 -6
  26. package/documention/WebMapTileServiceImageryProvider.html +22 -6
  27. package/documention/global.html +17 -5
  28. package/documention/index.html +4 -4
  29. package/documention/module-%E5%AE%A2%E6%88%B7%E7%AB%AF%E5%8F%AF%E8%A7%86%E5%8C%96.EchartsLayer.html +7 -3
  30. package/documention/module-%E5%AE%A2%E6%88%B7%E7%AB%AF%E5%8F%AF%E8%A7%86%E5%8C%96.MapVLayer.html +81 -29
  31. package/documention/module.exports_module.exports.html +36 -12
  32. package/documention/scripts/sideBar.js +111 -6
  33. package/package.json +1 -1
@@ -73,13 +73,17 @@
73
73
 
74
74
  <tr class="deep-level-0">
75
75
 
76
- <td class="name" id="map"><code>map</code></td>
76
+ <td class="name"><code>map</code></td>
77
77
 
78
78
 
79
79
  <td class="type">
80
80
 
81
81
 
82
- <span class="param-type">Object</span>
82
+ <span class="param-type">
83
+
84
+ Object
85
+
86
+ </span>
83
87
 
84
88
 
85
89
 
@@ -102,13 +106,17 @@
102
106
 
103
107
  <tr class="deep-level-0">
104
108
 
105
- <td class="name" id="dataset"><code>dataset</code></td>
109
+ <td class="name"><code>dataset</code></td>
106
110
 
107
111
 
108
112
  <td class="type">
109
113
 
110
114
 
111
- <span class="param-type">MapvDataSet</span>
115
+ <span class="param-type">
116
+
117
+ MapvDataSet
118
+
119
+ </span>
112
120
 
113
121
 
114
122
 
@@ -131,13 +139,17 @@
131
139
 
132
140
  <tr class="deep-level-0">
133
141
 
134
- <td class="name" id="mapVOptions"><code>mapVOptions</code></td>
142
+ <td class="name"><code>mapVOptions</code></td>
135
143
 
136
144
 
137
145
  <td class="type">
138
146
 
139
147
 
140
- <span class="param-type">MapvOption</span>
148
+ <span class="param-type">
149
+
150
+ MapvOption
151
+
152
+ </span>
141
153
 
142
154
 
143
155
 
@@ -158,13 +170,17 @@
158
170
 
159
171
  <tr class="deep-level-1">
160
172
 
161
- <td class="name" id="cesium"><code>cesium</code></td>
173
+ <td class="name"><code>cesium</code></td>
162
174
 
163
175
 
164
176
  <td class="type">
165
177
 
166
178
 
167
- <span class="param-type">Object</span>
179
+ <span class="param-type">
180
+
181
+ Object
182
+
183
+ </span>
168
184
 
169
185
 
170
186
 
@@ -185,13 +201,17 @@
185
201
 
186
202
  <tr class="deep-level-1">
187
203
 
188
- <td class="name" id="cesium.postRender"><code>cesium.postRender</code></td>
204
+ <td class="name"><code>cesium.postRender</code></td>
189
205
 
190
206
 
191
207
  <td class="type">
192
208
 
193
209
 
194
- <span class="param-type">Boolean</span>
210
+ <span class="param-type">
211
+
212
+ Boolean
213
+
214
+ </span>
195
215
 
196
216
 
197
217
 
@@ -219,13 +239,17 @@
219
239
 
220
240
  <tr class="deep-level-0">
221
241
 
222
- <td class="name" id="mapVOptionscesium.cesium.postRenderFrame"><code>mapVOptionscesium.cesium.postRenderFrame</code></td>
242
+ <td class="name"><code>mapVOptionscesium.cesium.postRenderFrame</code></td>
223
243
 
224
244
 
225
245
  <td class="type">
226
246
 
227
247
 
228
- <span class="param-type">Boolean</span>
248
+ <span class="param-type">
249
+
250
+ Boolean
251
+
252
+ </span>
229
253
 
230
254
 
231
255
 
@@ -250,13 +274,17 @@
250
274
 
251
275
  <tr class="deep-level-0">
252
276
 
253
- <td class="name" id="container"><code>container</code></td>
277
+ <td class="name"><code>container</code></td>
254
278
 
255
279
 
256
280
  <td class="type">
257
281
 
258
282
 
259
- <span class="param-type">Element</span>
283
+ <span class="param-type">
284
+
285
+ Element
286
+
287
+ </span>
260
288
 
261
289
 
262
290
 
@@ -584,13 +612,17 @@
584
612
 
585
613
  <tr class="deep-level-0">
586
614
 
587
- <td class="name" id="data"><code>data</code></td>
615
+ <td class="name"><code>data</code></td>
588
616
 
589
617
 
590
618
  <td class="type">
591
619
 
592
620
 
593
- <span class="param-type">Array</span>
621
+ <span class="param-type">
622
+
623
+ Array
624
+
625
+ </span>
594
626
 
595
627
 
596
628
 
@@ -609,13 +641,17 @@
609
641
 
610
642
  <tr class="deep-level-0">
611
643
 
612
- <td class="name" id="options"><code>options</code></td>
644
+ <td class="name"><code>options</code></td>
613
645
 
614
646
 
615
647
  <td class="type">
616
648
 
617
649
 
618
- <span class="param-type">Object</span>
650
+ <span class="param-type">
651
+
652
+ Object
653
+
654
+ </span>
619
655
 
620
656
 
621
657
 
@@ -670,7 +706,7 @@
670
706
  <dt class="tag-see">See:</dt>
671
707
  <dd class="tag-see">
672
708
  <ul>
673
- <li><a class="mapgis-link-name" title="https://github.com/huiyan-fe/mapv/blob/master/API.md" https://github.com/huiyan-fe/mapv/blob/master/API.md>https://github.com/huiyan-fe/mapv/blob/master/API.md</a></li>
709
+ <li>https://github.com/huiyan-fe/mapv/blob/master/API.md</li>
674
710
  </ul>
675
711
  </dd>
676
712
 
@@ -939,13 +975,17 @@
939
975
 
940
976
  <tr class="deep-level-0">
941
977
 
942
- <td class="name" id="data"><code>data</code></td>
978
+ <td class="name"><code>data</code></td>
943
979
 
944
980
 
945
981
  <td class="type">
946
982
 
947
983
 
948
- <span class="param-type">Array</span>
984
+ <span class="param-type">
985
+
986
+ Array
987
+
988
+ </span>
949
989
 
950
990
 
951
991
 
@@ -964,13 +1004,17 @@
964
1004
 
965
1005
  <tr class="deep-level-0">
966
1006
 
967
- <td class="name" id="options"><code>options</code></td>
1007
+ <td class="name"><code>options</code></td>
968
1008
 
969
1009
 
970
1010
  <td class="type">
971
1011
 
972
1012
 
973
- <span class="param-type">Object</span>
1013
+ <span class="param-type">
1014
+
1015
+ Object
1016
+
1017
+ </span>
974
1018
 
975
1019
 
976
1020
 
@@ -1025,7 +1069,7 @@
1025
1069
  <dt class="tag-see">See:</dt>
1026
1070
  <dd class="tag-see">
1027
1071
  <ul>
1028
- <li><a class="mapgis-link-name" title="https://github.com/huiyan-fe/mapv/blob/master/API.md" https://github.com/huiyan-fe/mapv/blob/master/API.md>https://github.com/huiyan-fe/mapv/blob/master/API.md</a></li>
1072
+ <li>https://github.com/huiyan-fe/mapv/blob/master/API.md</li>
1029
1073
  </ul>
1030
1074
  </dd>
1031
1075
 
@@ -1567,13 +1611,17 @@
1567
1611
 
1568
1612
  <tr class="deep-level-0">
1569
1613
 
1570
- <td class="name" id="data"><code>data</code></td>
1614
+ <td class="name"><code>data</code></td>
1571
1615
 
1572
1616
 
1573
1617
  <td class="type">
1574
1618
 
1575
1619
 
1576
- <span class="param-type">Array</span>
1620
+ <span class="param-type">
1621
+
1622
+ Array
1623
+
1624
+ </span>
1577
1625
 
1578
1626
 
1579
1627
 
@@ -1592,13 +1640,17 @@
1592
1640
 
1593
1641
  <tr class="deep-level-0">
1594
1642
 
1595
- <td class="name" id="options"><code>options</code></td>
1643
+ <td class="name"><code>options</code></td>
1596
1644
 
1597
1645
 
1598
1646
  <td class="type">
1599
1647
 
1600
1648
 
1601
- <span class="param-type">Object</span>
1649
+ <span class="param-type">
1650
+
1651
+ Object
1652
+
1653
+ </span>
1602
1654
 
1603
1655
 
1604
1656
 
@@ -1653,7 +1705,7 @@
1653
1705
  <dt class="tag-see">See:</dt>
1654
1706
  <dd class="tag-see">
1655
1707
  <ul>
1656
- <li><a class="mapgis-link-name" title="https://github.com/huiyan-fe/mapv/blob/master/API.md" https://github.com/huiyan-fe/mapv/blob/master/API.md>https://github.com/huiyan-fe/mapv/blob/master/API.md</a></li>
1708
+ <li>https://github.com/huiyan-fe/mapv/blob/master/API.md</li>
1657
1709
  </ul>
1658
1710
  </dd>
1659
1711
 
@@ -69,13 +69,17 @@
69
69
 
70
70
  <tr class="deep-level-0">
71
71
 
72
- <td class="name" id="map"><code>map</code></td>
72
+ <td class="name"><code>map</code></td>
73
73
 
74
74
 
75
75
  <td class="type">
76
76
 
77
77
 
78
- <span class="param-type">Cesium.Viewer</span>
78
+ <span class="param-type">
79
+
80
+ Cesium.Viewer
81
+
82
+ </span>
79
83
 
80
84
 
81
85
 
@@ -98,13 +102,17 @@
98
102
 
99
103
  <tr class="deep-level-0">
100
104
 
101
- <td class="name" id="options"><code>options</code></td>
105
+ <td class="name"><code>options</code></td>
102
106
 
103
107
 
104
108
  <td class="type">
105
109
 
106
110
 
107
- <span class="param-type">*</span>
111
+ <span class="param-type">
112
+
113
+ *
114
+
115
+ </span>
108
116
 
109
117
 
110
118
 
@@ -125,13 +133,17 @@
125
133
 
126
134
  <tr class="deep-level-1">
127
135
 
128
- <td class="name" id="postRender"><code>postRender</code></td>
136
+ <td class="name"><code>postRender</code></td>
129
137
 
130
138
 
131
139
  <td class="type">
132
140
 
133
141
 
134
- <span class="param-type">Boolean</span>
142
+ <span class="param-type">
143
+
144
+ Boolean
145
+
146
+ </span>
135
147
 
136
148
 
137
149
 
@@ -154,13 +166,17 @@
154
166
 
155
167
  <tr class="deep-level-1">
156
168
 
157
- <td class="name" id="visible"><code>visible</code></td>
169
+ <td class="name"><code>visible</code></td>
158
170
 
159
171
 
160
172
  <td class="type">
161
173
 
162
174
 
163
- <span class="param-type">Boolean</span>
175
+ <span class="param-type">
176
+
177
+ Boolean
178
+
179
+ </span>
164
180
 
165
181
 
166
182
 
@@ -183,13 +199,17 @@
183
199
 
184
200
  <tr class="deep-level-1">
185
201
 
186
- <td class="name" id="opacity"><code>opacity</code></td>
202
+ <td class="name"><code>opacity</code></td>
187
203
 
188
204
 
189
205
  <td class="type">
190
206
 
191
207
 
192
- <span class="param-type">Number</span>
208
+ <span class="param-type">
209
+
210
+ Number
211
+
212
+ </span>
193
213
 
194
214
 
195
215
 
@@ -217,13 +237,17 @@
217
237
 
218
238
  <tr class="deep-level-0">
219
239
 
220
- <td class="name" id="container"><code>container</code></td>
240
+ <td class="name"><code>container</code></td>
221
241
 
222
242
 
223
243
  <td class="type">
224
244
 
225
245
 
226
- <span class="param-type">HTMLElement</span>
246
+ <span class="param-type">
247
+
248
+ HTMLElement
249
+
250
+ </span>
227
251
 
228
252
 
229
253
 
@@ -3,17 +3,65 @@ function toggleSideBar(id) {
3
3
  _dom.style.display = _dom.style.display === 'block' ? 'none' : 'block'
4
4
  }
5
5
 
6
+ function showSideBar(id) {
7
+ var _dom = document.getElementById(id)
8
+ _dom.style.display = 'block'
9
+ }
10
+
11
+ var lastClickClassId
12
+ function highLightClickClass(currentId) {
13
+ var _dom2 = document.getElementById(currentId)
14
+ _dom2.style.color = '#ffa83df5'
15
+ _dom2.style.fontWeight="900"
16
+ if (lastClickClassId && lastClickClassId !== currentId) {
17
+ var _dom3 = document.getElementById(lastClickClassId)
18
+ _dom3.style.color = '#798897'
19
+ _dom3.style.fontWeight="400"
20
+ }
21
+ lastClickClassId = currentId
22
+ }
23
+
24
+ var lastClickClassTarget
25
+ function highLightClickClassByTarget(target) {
26
+ target.style.color = '#ffa83df5'
27
+ target.style.fontWeight="900"
28
+ if (lastClickClassTarget && lastClickClassTarget.getAttribute('title') !== target.getAttribute('title')) {
29
+ lastClickClassTarget.style.color = '#798897'
30
+ lastClickClassTarget.style.fontWeight="400"
31
+ }
32
+ lastClickClassTarget = target
33
+ }
34
+
6
35
  function toggleLinkDetail(id) {
7
36
  var _dom = document.getElementById(id)
8
37
  var _arrow = document.getElementById(id + '-arrow')
9
38
  _arrow.style.transform = _dom.style.display === 'block' ? 'rotate(360deg)' : 'rotate(180deg)'
10
39
  _dom.style.display = _dom.style.display === 'block' ? 'none' : 'block'
40
+ if (_dom.style.display === 'block') {
41
+ highLightClickClass(id.split('-')[0])
42
+ }
43
+ }
44
+
45
+ function showLinkDetail(id) {
46
+ var _dom = document.getElementById(id)
47
+ var _arrow = document.getElementById(id + '-arrow')
48
+ _arrow.style.transform = 'rotate(360deg)'
49
+ _dom.style.display = 'block'
11
50
  }
12
51
 
13
52
  function getTypeHTML(e) {
14
53
  var link = e.target.getAttribute('link')
15
54
  var goto = e.target.getAttribute('goto')
16
- const _baseUrl = getBaseUrl(window.location.href)
55
+ const attributes = e.target.attributes
56
+ for (let i = 0; i < attributes.length; i++) {
57
+ const { name } = attributes[i]
58
+ if (name.indexOf('global.html') > -1) {
59
+ goto = link.split('.')[0]
60
+ link = 'global.html'
61
+ break
62
+ }
63
+ }
64
+ const _baseUrl = window.location.href.split('/index.html')[0]
17
65
  fetch(_baseUrl + '/' + link, {
18
66
  method: 'GET',
19
67
  })
@@ -22,17 +70,20 @@ function getTypeHTML(e) {
22
70
  const _contentDom = document.getElementById('main-content')
23
71
  if (_contentDom) {
24
72
  _contentDom.innerHTML = data
25
- gotoTop(goto)
73
+ gotoTop(goto, getLinkName(link))
26
74
  }
27
75
  })
28
76
  .catch(error => console.error('Error:', error))
29
77
  }
30
78
 
31
- function gotoTop(id) {
79
+ function gotoTop(id, linkName) {
32
80
  id = id || 'main-content'
33
81
  const _aDom = document.createElement('a');
34
82
  _aDom.href = '#' + id
35
83
  _aDom.click()
84
+ if (linkName) {
85
+ window.location.hash = id + '?' + linkName
86
+ }
36
87
  }
37
88
 
38
89
  function getBaseUrl(url) {
@@ -50,6 +101,11 @@ function getBaseUrl(url) {
50
101
  return ''
51
102
  }
52
103
 
104
+ function getLinkName(url) {
105
+ var urlParts = url.split('/')
106
+ return urlParts[urlParts.length - 1].split('.')[0]
107
+ }
108
+
53
109
  (function() {
54
110
  const targets = [ ...document.querySelectorAll('#sidebarNav li.mapgis-link a')]
55
111
  targets.forEach(function (_target) {
@@ -63,7 +119,9 @@ function getBaseUrl(url) {
63
119
  const _contentDom = document.getElementById('main-content')
64
120
  if (_contentDom) {
65
121
  _contentDom.innerHTML = data
66
- gotoTop()
122
+ var linkName = getLinkName(e.target.getAttribute('link'))
123
+ highLightClickClass(linkName)
124
+ gotoTop(undefined, linkName)
67
125
  }
68
126
  })
69
127
  .catch(error => console.error('Error:', error))
@@ -81,7 +139,7 @@ function getBaseUrl(url) {
81
139
  const _contentDom = document.getElementById('main-content')
82
140
  if (_contentDom) {
83
141
  _contentDom.innerHTML = data
84
- gotoTop()
142
+ gotoTop(e.target.getAttribute('linkto').split('#')[1], getLinkName(e.target.getAttribute('link')))
85
143
  }
86
144
  })
87
145
  .catch(error => console.error('Error:', error))
@@ -91,6 +149,7 @@ function getBaseUrl(url) {
91
149
  const targets3 = [ ...document.querySelectorAll('#sidebarNav div div ul li a#api-member')]
92
150
  targets3.forEach(function (_target) {
93
151
  _target.addEventListener('click', function (e) {
152
+ highLightClickClassByTarget(e.target)
94
153
  const _baseUrl = getBaseUrl(window.location.href)
95
154
  fetch(_baseUrl + e.target.attributes[1].value, {
96
155
  method: 'GET',
@@ -100,10 +159,56 @@ function getBaseUrl(url) {
100
159
  const _contentDom = document.getElementById('main-content')
101
160
  if (_contentDom) {
102
161
  _contentDom.innerHTML = data
103
- gotoTop()
162
+ gotoTop(e.target.getAttribute('title'), getLinkName(e.target.getAttribute('link')))
104
163
  }
105
164
  })
106
165
  .catch(error => console.error('Error:', error))
107
166
  })
108
167
  })
109
168
  })()
169
+
170
+ window.onload = function () {
171
+ var urlParts = window.location.href.split('#')
172
+ if (urlParts.length > 1) {
173
+ var id = urlParts[1].split('?')[0]
174
+ var linkName = urlParts[1].split('?')[1]
175
+ if (id && linkName) {
176
+ const _baseUrl = window.location.href.split('/index.html')[0]
177
+ fetch(_baseUrl + '/' + linkName + '.html', {
178
+ method: 'GET',
179
+ })
180
+ .then(response => response.text())
181
+ .then(data => {
182
+ const _contentDom = document.getElementById('main-content')
183
+ if (_contentDom) {
184
+ _contentDom.innerHTML = data
185
+ var modules = document.getElementsByClassName('mapgis-sidebar-menus')
186
+ for (var i = 0; i < modules.length; i++) {
187
+ if (modules[i].innerHTML.indexOf('"' + linkName + '"') > -1) {
188
+ showSideBar(modules[i].id)
189
+ var classArray = document.getElementsByClassName("mapgis-link-detail")
190
+ for (var j = 0; j < classArray.length; j++) {
191
+ if (
192
+ classArray[j].id === linkName + '-detail'
193
+ ) {
194
+ showLinkDetail(linkName + '-detail')
195
+ highLightClickClass(linkName)
196
+ var members = document.querySelectorAll('#' + linkName + '-detail' + ' a')
197
+ for (var k = 0; k < members.length; k++) {
198
+ if (members[k].title === id) {
199
+ highLightClickClassByTarget(members[k])
200
+ }
201
+ }
202
+ break
203
+ }
204
+ }
205
+ break
206
+ }
207
+ }
208
+ gotoTop(id, linkName)
209
+ }
210
+ })
211
+ .catch(error => console.error('Error:', error))
212
+ }
213
+ }
214
+ }
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@mapgis/webclient-cesium-plugin",
3
- "version":"17.0.4",
3
+ "version":"17.0.5",
4
4
  "description": "",
5
5
  "main": "dist/webclient-cesium-plugin-es6.min.js",
6
6
  "scripts": {},