@mapgis/webclient-vue-cesium 10.5.5-1 → 10.5.5-6

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 (124) hide show
  1. package/README.md +46 -49
  2. package/dist-libs/webclient-vue-cesium.common.js +191087 -0
  3. package/dist-libs/webclient-vue-cesium.css +1 -1
  4. package/dist-libs/webclient-vue-cesium.umd.js +191097 -0
  5. package/dist-libs/webclient-vue-cesium.umd.min.js +204 -194
  6. package/docs/.vuepress/config.js +47 -46
  7. package/docs/README.md +5 -4
  8. package/docs/api/analysis/Aspect.md +236 -0
  9. package/docs/api/analysis/Contour.md +240 -0
  10. package/docs/api/analysis/CutFill.md +306 -0
  11. package/docs/api/analysis/DynamicSection.md +336 -0
  12. package/docs/api/analysis/Excavate.md +3 -11
  13. package/docs/api/analysis/Flood.md +177 -200
  14. package/docs/api/analysis/HeightLimited.md +7 -4
  15. package/docs/api/analysis/ParticleEffects.md +549 -0
  16. package/docs/api/analysis/Profile.md +464 -0
  17. package/docs/api/analysis/Shadow.md +76 -13
  18. package/docs/api/analysis/Sightline.md +66 -13
  19. package/docs/api/analysis/Skyline.md +144 -29
  20. package/docs/api/analysis/Slope.md +236 -0
  21. package/docs/api/analysis/Viewshed.md +100 -21
  22. package/docs/api/layer/IGServer/IgsDocLayer.md +10 -0
  23. package/docs/api/layer/IGServer/IgsFeatureLayer.md +253 -0
  24. package/docs/api/layer/IGServer/IgsTileLayer.md +11 -0
  25. package/docs/api/layer/OGC/CesiumOgcWmsLayer.md +20 -19
  26. package/docs/api/layer/OGC/Wms.png +0 -0
  27. package/docs/api/layer/marker/DynamicMarker.md +81 -0
  28. package/docs/api/layer/marker/dynamicmarker.png +0 -0
  29. package/docs/api/layer/marker/selects.png +0 -0
  30. package/docs/api/layer/vectortile/vectortile.md +10 -0
  31. package/docs/api/m3d/image/layer_control_1.png +0 -0
  32. package/docs/api/m3d/image/layer_control_2.png +0 -0
  33. package/docs/api/m3d/image/layer_control_3.png +0 -0
  34. package/docs/api/m3d/m3d.md +13 -2
  35. package/docs/api/service/comprehensiveQuery/comprehensiveQuery.md +946 -0
  36. package/docs/api/ui/draw.md +68 -40
  37. package/docs/api/ui/link.md +8 -1
  38. package/docs/api/ui/marker.md +19 -1
  39. package/docs/api/ui/measure.md +82 -10
  40. package/docs/api/ui/table.md +6 -6
  41. package/docs/guide/README.md +26 -23
  42. package/docs/guide/basemap.md +35 -33
  43. package/docs/guide/markers&popups.md +46 -53
  44. package/docs/plugin_components/create_storybook.md +241 -0
  45. package/docs/plugin_components/img.png +0 -0
  46. package/docs/plugin_components/img_1.png +0 -0
  47. package/docs/plugin_components/img_10.png +0 -0
  48. package/docs/plugin_components/img_2.png +0 -0
  49. package/docs/plugin_components/img_3.png +0 -0
  50. package/docs/plugin_components/img_4.png +0 -0
  51. package/docs/plugin_components/img_5.png +0 -0
  52. package/docs/plugin_components/img_6.png +0 -0
  53. package/docs/plugin_components/img_7.png +0 -0
  54. package/docs/plugin_components/img_8.png +0 -0
  55. package/docs/version/diff.md +4 -4
  56. package/docs/version/version.md +81 -0
  57. package/package.json +5 -5
  58. package/src/cdn/cdn_component.js +62 -0
  59. package/src/component.js +20 -2
  60. package/src/components/Analysis/Aspect.vue +318 -0
  61. package/src/components/Analysis/Contour.vue +257 -0
  62. package/src/components/Analysis/CutFill.vue +581 -0
  63. package/src/components/Analysis/DynamicCutting.vue +98 -59
  64. package/src/components/Analysis/DynamicSection.vue +494 -0
  65. package/src/components/Analysis/Excavate.vue +133 -87
  66. package/src/components/Analysis/Flood.vue +395 -487
  67. package/src/components/Analysis/Flood.vue-- +630 -0
  68. package/src/components/Analysis/HeightLimited.vue +66 -47
  69. package/src/components/Analysis/ModelFlatten.vue +2 -2
  70. package/src/components/Analysis/Profile.vue +503 -0
  71. package/src/components/Analysis/Shadow.vue +220 -309
  72. package/src/components/Analysis/Sightline.vue +393 -375
  73. package/src/components/Analysis/SkyLine.vue +283 -93
  74. package/src/components/Analysis/Slope.vue +317 -0
  75. package/src/components/Analysis/Viewshed.vue +806 -373
  76. package/src/components/Analysis/skyline2dChartOptions.js +66 -0
  77. package/src/components/DataSource/Geojson/GeoJsonDataSource.vue +201 -3
  78. package/src/components/Layer/GeoJSON/GeoJsonLayer.vue +345 -0
  79. package/src/components/Layer/IGServer/IgsFeatureLayer.vue +227 -0
  80. package/src/components/Layer/Marker/DynamicMarkerLayer.vue +487 -0
  81. package/src/components/Layer/Marker/Marker3dPro.vue +196 -0
  82. package/src/components/Layer/Marker/Marker3dSetPro.vue +67 -0
  83. package/src/components/Layer/VectorTile/VectorTileLayer.vue +117 -33
  84. package/src/components/Layer/VectorTile/VectorTileOptions.js +1 -1
  85. package/src/components/M3D/3DTilesetOptions.js +23 -1
  86. package/src/components/M3D/G3D.vue +150 -0
  87. package/src/components/M3D/M3d.vue +142 -32
  88. package/src/components/M3D/M3dSet.vue +118 -0
  89. package/src/components/M3D/M3dType.js +24 -0
  90. package/src/components/Overlay/Mapv3dLayer.vue +2 -0
  91. package/src/components/Overlay/ParticleEffects.vue +545 -0
  92. package/src/components/Overlay/mapv/MapvBaseLayer.js +351 -172
  93. package/src/components/Overlay/mapv/MapvLayer.js +372 -324
  94. package/src/components/Overlay/mapv/SuperCluster.js +611 -0
  95. package/src/components/Overlay/themeLayer/heater/CesiumHeater.vue +152 -0
  96. package/src/components/Overlay/themeLayer/heater/MapvHeater.vue +161 -0
  97. package/src/components/UI/Controls/Draw/Draw.vue +320 -92
  98. package/src/components/UI/Controls/Legend/Legend.vue +55 -51
  99. package/src/components/UI/Controls/Link/Link.vue +59 -37
  100. package/src/components/UI/Controls/Measure/Measure.vue +75 -33
  101. package/src/components/UI/Controls/Measure/components/MeasureResult.vue +71 -0
  102. package/src/components/UI/Controls/Measure/components/MeasureSetting.vue +63 -0
  103. package/src/components/UI/Controls/Measure/components/MeasureTool.vue +155 -0
  104. package/src/components/UI/Geojson/Popup.vue +101 -0
  105. package/src/components/UI/Marker/Marker.vue +185 -48
  106. package/src/components/UI/Popup/Popup.vue +21 -64
  107. package/src/components/Utils/common/color-util.js +159 -0
  108. package/src/components/Utils/util.js +311 -231
  109. package/src/components/WebGlobe/manager.js +81 -3
  110. package/src/components/WebGlobe/mixins/withPrivateMethods.js +4 -2
  111. package/src/components/WebGlobe/util.js +173 -0
  112. package/src/components/service/comprehensive-query/ComprehensiveQuery.vue +156 -0
  113. package/src/components/service/comprehensive-query/PlaceNameCesium.vue +102 -0
  114. package/src/components/service/comprehensive-query/util/catalog/document.js +626 -0
  115. package/src/components/service/comprehensive-query/util/feature/arcgis-feature-query.js +448 -0
  116. package/src/components/service/comprehensive-query/util/feature/feature-convert.js +408 -0
  117. package/src/components/service/comprehensive-query/util/feature/feature-edit.js +50 -0
  118. package/src/components/service/comprehensive-query/util/feature/feature-geojson.js +100 -0
  119. package/src/components/service/comprehensive-query/util/feature/feature-query.js +723 -0
  120. package/src/components/service/comprehensive-query/util/feature/feature.js +1 -0
  121. package/src/components/service/comprehensive-query/util/feature/index.js +9 -0
  122. package/src/components/service/comprehensive-query/util/objects/geometry.js +58 -0
  123. package/src/components/Overlay/Mapv.vue +0 -142
  124. package/src/components/Overlay/MapvHeater.vue +0 -98
@@ -1,171 +1,145 @@
1
- # 洪水淹没分析
2
-
3
- > mapgis-3d-flood
1
+ > mapgis-3d-analysis-flood
4
2
 
5
3
  ## 属性
6
4
 
7
- ### `startHeight`
5
+ ### `vueKey`
6
+
7
+ - **类型:** `String`
8
+ - **可选**
9
+ - **非侦听属性**
10
+ - **默认值:** `default`
11
+ - **描述:** mapgis-web-scene 组件的 ID,当使用多个 mapgis-web-scene 组件时,需要指定该值,来唯一标识 mapgis-web-scene 组件,同时 mapgis-web-scene 插槽中的组件也需要传入相同的 vueKey,让组件知道应该作用于哪一个 mapgis-web-scene。
12
+
13
+ ### `vueIndex`
8
14
 
9
15
  - **类型:** `Number`
10
- - **默认值:** `0`
11
- - **侦听属性**
12
- - **描述:** 洪水淹没水体起始高度,如果设置了起始高度 startHeight,并且设置了当前淹没高度 currentHeight,则真实淹没高度为(currentHeight - startHeight - minHeight)
16
+ - **可选**
17
+ - **非侦听属性**
18
+ - **默认值:** `(Math.random() * 100000000).toFixed(0)`随机计算值
19
+ - **描述:** 当 mapgis-web-scene 插槽中使用了多个相同组件时,例如多个 mapgis-3d-igs-doc-layer 组件,用来区分组件的标识符。
13
20
 
14
- ### `minHeight`
21
+ ### `startHeight`
15
22
 
16
23
  - **类型:** `Number`
24
+ - **可选**
17
25
  - **默认值:** `0`
18
26
  - **侦听属性**
19
- - **描述:** 淹没动画高度起始点,如果设置了起始高度 startHeight,并且设置了当前淹没高度 currentHeight,则真实淹没高度为(currentHeight - startHeight - minHeight)
27
+ - **描述:** 洪水淹没水体起始高度
20
28
 
21
- ### `currentHeight`
29
+ ### `minHeight`
22
30
 
23
31
  - **类型:** `Number`
32
+ - **可选**
24
33
  - **默认值:** `0`
25
- - **侦听属性**
26
- - **描述:** 当前洪水淹没高度
34
+ - **非侦听属性**
35
+ - **描述:** 淹没动画高度起始点
27
36
 
28
37
  ### `maxHeight`
29
38
 
30
39
  - **类型:** `Number`
31
- - **默认值:** `200`
40
+ - **可选**
41
+ - **默认值:** `2000`
32
42
  - **侦听属性**
33
- - **描述:** 最大淹没高度
43
+ - **描述:** 最大淹没高度,淹没动画高度终止点
34
44
 
35
45
  ### `floodColor`
36
46
 
37
47
  - **类型:** `String`
38
- - **默认值:** `#4e81bb`
48
+ - **可选**
49
+ - **默认值:** `rgba(149,232,249,0.5)`
39
50
  - **侦听属性**
40
- - **描述:** 淹没颜色,十六进制颜色,例如:"#4e81bb"
51
+ - **描述:** 洪水颜色
41
52
 
42
53
  ### `floodSpeed`
43
54
 
44
55
  - **类型:** `Number`
45
- - **默认值:** `30`
56
+ - **可选**
57
+ - **默认值:** `500`
46
58
  - **侦听属性**
47
- - **描述:** 淹没速度
59
+ - **描述:** 洪水淹没速度,单位 米/秒
48
60
 
49
61
  ### `specularIntensity`
50
62
 
51
63
  - **类型:** `Number`
52
- - **默认值:** `1`
53
- - **侦听属性**
64
+ - **可选**
65
+ - **默认值:** `2`
66
+ - **非侦听属性**
54
67
  - **描述:** 反射光线强度
55
68
 
56
69
  ### `amplitude`
57
70
 
58
71
  - **类型:** `Number`
72
+ - **可选**
59
73
  - **默认值:** `10`
60
- - **侦听属性**
74
+ - **非侦听属性**
61
75
  - **描述:** 水波高度
62
76
 
63
77
  ### `animationSpeed`
64
78
 
65
79
  - **类型:** `Number`
80
+ - **可选**
66
81
  - **默认值:** `0.01`
67
- - **侦听属性**
82
+ - **非侦听属性**
68
83
  - **描述:** 水纹速度
69
84
 
70
85
  ### `frequency`
71
86
 
72
87
  - **类型:** `Number`
73
- - **默认值:** `1000`
74
- - **侦听属性**
75
- - **描述:** 水纹频率
76
-
77
- ### `vueKey`
78
-
79
- - **类型:** `String`
80
88
  - **可选**
89
+ - **默认值:** `500`
81
90
  - **非侦听属性**
82
- - **默认值:** `default`
83
- - **描述:**
84
- ```
85
- mapgis-web-scene组件的ID,当使用多个mapgis-web-scene组件时,需要指定该值,来唯一标识mapgis-web-scene组件,
86
- 同时mapgis-web-scene插槽中的组件也需要传入相同的vueKey,让组件知道应该作用于哪一个mapgis-web-scene。
87
- ```
88
-
89
- ### `vueIndex`
90
-
91
- - **类型:** `Number`
92
- - **可选**
93
- - **非侦听属性**
94
- - **描述:**
95
- ```
96
- 当mapgis-web-scene插槽中使用了多个相同组件时,例如多个mapgis-3d-igs-doc-layer组件,用来区分组件的标识符。
97
- ```
91
+ - **描述:** 水纹频率
98
92
 
99
93
  ## 方法
100
94
 
101
- ### `startAnalyse`
102
-
103
- - **Description:** 开始洪水淹没分析
104
-
105
- ### `stopAnalyse`
106
-
107
- - **Description:** 停止洪水淹没分析
95
+ ### `analysis`
108
96
 
109
- ### `up`
97
+ - **Description:** 洪水淹没分析
110
98
 
111
- - **Description:** 上升洪水水平面,最高为 maxHeight
99
+ ### `remove`
112
100
 
113
- ### `down`
101
+ - **Description:** 移除洪水淹没分析对象,移除洪水淹没分析结果。
114
102
 
115
- - **Description:** 下降洪水水平面,最低为 minHeight
103
+ ### `refresh`
116
104
 
117
- ### `pause`
118
-
119
- - **Description:** 暂停降洪水水平面的上升或下降
120
-
121
- ### `playAnalyse(start,end,forward,rate,timeDiff)`
122
-
123
- - **Description:** 自定义水平面上升或下降
124
- - **param:** <br/>
125
- > start: 上升或下降的起始位置,即最高点的位置
126
- > end: 上升或下降的结束位置,即最低点的位置
127
- > forward: 升降的方向,上升为数字 1,下降为数字-1
128
- > rate: 刷新频率,默认不用传
129
- > timeDiff: Cesium 与浏览器时间倍数,默认不用传
105
+ - **Description:** 重新计算,分析区域不变,修改设置参数后,重新进行分析。
130
106
 
131
107
  ## 事件
132
108
 
133
109
  ### `@load`
134
110
 
135
111
  - **Description:** 在 Flood 加载完毕后发送该事件
136
- - **Payload** `{ Flood }`
137
- - `Flood` Flood 对象
112
+ - **Payload** 洪水淹没分析对象
113
+
114
+ ## 示例
138
115
 
139
- ## 洪水分析使用方法
116
+ ### 非插槽方式
140
117
 
141
118
  ```vue
142
119
  <template>
143
- <mapgis-web-scene
144
- libPath="cesium/Cesium.js"
145
- pluginPath="cesium/webclient-cesium-plugin.min.js"
146
- >
120
+ <mapgis-web-scene style="{height: '100vh'}" v-on:load="handleLoad">
147
121
  <mapgis-3d-ogc-wmts-layer
148
- :baseUrl="urlT"
122
+ :baseUrl="url"
149
123
  :wmtsLayer="layer"
150
- :tileMatrixSet="tileMatrixSetID"
124
+ :tileMatrixSet="tileMatrixSet"
151
125
  :format="format"
152
- :tilingScheme="srs"
126
+ :tilingScheme="tilingScheme"
153
127
  :token="token"
154
- />
155
- <mapgis-3d-igs-terrain :url="url"></mapgis-3d-igs-terrain>
156
- <mapgis-3d-flood
157
- :startHeight="startHeight"
158
- :minHeight="minHeight"
159
- :currentHeight="currentHeight"
160
- :maxHeight="maxHeight"
161
- :floodColor="floodColor"
162
- :floodSpeed="floodSpeed"
163
- :specularIntensity="specularIntensity"
164
- :amplitude="amplitude"
165
- :animationSpeed="animationSpeed"
166
- :frequency="frequency"
167
- >
168
- </mapgis-3d-flood>
128
+ ></mapgis-3d-ogc-wmts-layer>
129
+ <mapgis-3d-igs-terrain :url="terrainUrl" :requestVertexNormals="true" />
130
+ <mapgis-ui-card class="storybook-ui-card">
131
+ <mapgis-3d-analysis-flood
132
+ :startHeight="startHeight"
133
+ :minHeight="minHeight"
134
+ :maxHeight="maxHeight"
135
+ :floodColor="floodColor"
136
+ :floodSpeed="floodSpeed"
137
+ :specularIntensity="specularIntensity"
138
+ :amplitude="amplitude"
139
+ :animationSpeed="animationSpeed"
140
+ :frequency="frequency"
141
+ />
142
+ </mapgis-ui-card>
169
143
  </mapgis-web-scene>
170
144
  </template>
171
145
 
@@ -173,55 +147,58 @@ mapgis-web-scene组件的ID,当使用多个mapgis-web-scene组件时,需要
173
147
  export default {
174
148
  data() {
175
149
  return {
176
- //地形url
177
- url: "http://localhost:6163/igs/rest/g3d/terrain",
178
- //天地图参数
179
- urlT: "http://t0.tianditu.gov.cn/img_c/wmts",
180
- tileMatrixSetID: "c",
181
- srs: "EPSG:4326",
150
+ url: "http://t0.tianditu.gov.cn/img_c/wmts",
151
+ //地形url TODO这里地址打包的时候改一下
152
+ terrainUrl: "http://192.168.21.191:6163/igs/rest/g3d/terrain",
153
+ tileMatrixSet: "c",
154
+ tilingScheme: "EPSG:4326",
182
155
  layer: "img",
183
156
  format: "tiles",
184
157
  token: {
185
158
  key: "tk",
186
- value: "f5347cab4b28410a6e8ba5143e3d5a35"
159
+ value: "2ddaabf906d4b5418aed0078e1657029"
187
160
  },
188
- //初始淹没高度,淹没总高度为currentHeight - startHeight - minHeight
189
161
  startHeight: 0,
190
- //初始淹没点
191
162
  minHeight: 0,
192
- //当前淹没高度
193
- currentHeight: 0,
194
- //最大淹没高度
195
- maxHeight: 200,
196
- //淹没颜色
197
- floodColor: "#FFFF00",
198
- //洪水上涨速度
199
- floodSpeed: 30,
200
- //洪水反射光线强度
201
- specularIntensity: 1,
202
- //洪水水波高度
163
+ maxHeight: 2000,
164
+ floodColor: "rgba(149,232,249,0.5)",
165
+ floodSpeed: 500,
166
+ specularIntensity: 2,
203
167
  amplitude: 10,
204
- //洪水水纹速度
205
168
  animationSpeed: 0.01,
206
- //洪水水纹频率
207
- frequency: 1000,
208
- //洪水分析组件对象
209
- floodAnalyse: undefined
169
+ frequency: 500
210
170
  };
211
171
  },
212
- mounted() {
213
- //视点跳转
214
- window.CesiumZondy.getWebGlobeByInterval(function(webGlobe) {
215
- let sceneManager = new window.CesiumZondy.Manager.SceneManager({
172
+ methods: {
173
+ handleLoad(e) {
174
+ const { component, Cesium } = e;
175
+ Cesium.Ion.defaultAccessToken =
176
+ "eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJqdGkiOiJiM2Q0ZGMxYy1iZGZkLTQ4OWItODlhMy1iOWNkMDE0M2U3YWEiLCJpZCI6NTEzNSwiaWF0IjoxNjA2MjE0OTkyfQ.2aktNrUASlLsPwSFtkgKBTQLJTAnOTyjgKDRQmnafiE";
177
+ const { webGlobe } = component;
178
+ webGlobe.viewer.camera.setView({
179
+ direction: {
180
+ x: 0.4680575394156845,
181
+ y: -0.8267033643312148,
182
+ z: 0.31222377744109403
183
+ },
184
+ position: {
185
+ x: -674271.5790185562,
186
+ y: 5530042.656916835,
187
+ z: 3232882.3357299212
188
+ }
189
+ });
190
+ //构造视图功能管理对象(视图)
191
+ var sceneManager = new CesiumZondy.Manager.SceneManager({
216
192
  viewer: webGlobe.viewer
217
193
  });
218
- sceneManager.flyToEx(115, 30, {
219
- height: 100,
220
- heading: 30,
221
- pitch: -10,
194
+ //视点跳转(经度,纬度,视角高度,方位角,俯仰角,翻滚角)
195
+ sceneManager.flyToEx(121, 24, {
196
+ height: 5900,
197
+ heading: 60,
198
+ pitch: -16,
222
199
  roll: 0
223
200
  });
224
- });
201
+ }
225
202
  }
226
203
  };
227
204
  </script>
@@ -231,38 +208,36 @@ export default {
231
208
 
232
209
  ```vue
233
210
  <template>
234
- <mapgis-web-scene
235
- libPath="cesium/Cesium.js"
236
- pluginPath="cesium/webclient-cesium-plugin.min.js"
237
- >
211
+ <mapgis-web-scene style="{height: '100vh'}" v-on:load="handleLoad">
238
212
  <mapgis-3d-ogc-wmts-layer
239
- :baseUrl="urlT"
213
+ :baseUrl="url"
240
214
  :wmtsLayer="layer"
241
- :tileMatrixSet="tileMatrixSetID"
215
+ :tileMatrixSet="tileMatrixSet"
242
216
  :format="format"
243
- :tilingScheme="srs"
217
+ :tilingScheme="tilingScheme"
244
218
  :token="token"
245
- />
246
- <mapgis-3d-igs-terrain :url="url"></mapgis-3d-igs-terrain>
247
- <mapgis-3d-flood
248
- :startHeight="startHeight"
249
- :minHeight="minHeight"
250
- :currentHeight="currentHeight"
251
- :maxHeight="maxHeight"
252
- :floodColor="floodColor"
253
- :floodSpeed="floodSpeed"
254
- :specularIntensity="specularIntensity"
255
- :amplitude="amplitude"
256
- :animationSpeed="animationSpeed"
257
- :frequency="frequency"
258
- @load="load"
259
- >
260
- <!-- 这里是自定义的界面-->
261
- <div>
262
- <button @click="startAnalyse">开始分析</button>
263
- <button @click="stopAnalyse">停止分析</button>
264
- </div>
265
- </mapgis-3d-flood>
219
+ ></mapgis-3d-ogc-wmts-layer>
220
+ <mapgis-3d-igs-terrain :url="terrainUrl" :requestVertexNormals="true" />
221
+ <mapgis-ui-card class="storybook-ui-card">
222
+ <mapgis-3d-analysis-flood
223
+ :startHeight="startHeight"
224
+ :minHeight="minHeight"
225
+ :maxHeight="maxHeight"
226
+ :floodColor="floodColor"
227
+ :floodSpeed="floodSpeed"
228
+ :specularIntensity="specularIntensity"
229
+ :amplitude="amplitude"
230
+ :animationSpeed="animationSpeed"
231
+ :frequency="frequency"
232
+ @load="load"
233
+ >
234
+ <!-- 这里是自定义的界面-->
235
+ <div>
236
+ <button @click="analysis">分析</button>
237
+ <button @click="remove">清除</button>
238
+ </div>
239
+ </mapgis-3d-analysis-flood>
240
+ </mapgis-ui-card>
266
241
  </mapgis-web-scene>
267
242
  </template>
268
243
 
@@ -270,68 +245,70 @@ export default {
270
245
  export default {
271
246
  data() {
272
247
  return {
273
- //地形url
274
- url: "http://localhost:6163/igs/rest/g3d/terrain",
275
- //天地图参数
276
- urlT: "http://t0.tianditu.gov.cn/img_c/wmts",
277
- tileMatrixSetID: "c",
278
- srs: "EPSG:4326",
248
+ url: "http://t0.tianditu.gov.cn/img_c/wmts",
249
+ //地形url TODO这里地址打包的时候改一下
250
+ terrainUrl: "http://192.168.21.191:6163/igs/rest/g3d/terrain",
251
+ tileMatrixSet: "c",
252
+ tilingScheme: "EPSG:4326",
279
253
  layer: "img",
280
254
  format: "tiles",
281
255
  token: {
282
256
  key: "tk",
283
- value: "f5347cab4b28410a6e8ba5143e3d5a35"
257
+ value: "2ddaabf906d4b5418aed0078e1657029"
284
258
  },
285
- //初始淹没高度,淹没总高度为currentHeight - startHeight - minHeight
286
259
  startHeight: 0,
287
- //初始淹没点
288
260
  minHeight: 0,
289
- //当前淹没高度
290
- currentHeight: 0,
291
- //最大淹没高度
292
- maxHeight: 200,
293
- //淹没颜色
294
- floodColor: "#FFFF00",
295
- //洪水上涨速度
296
- floodSpeed: 30,
297
- //洪水反射光线强度
298
- specularIntensity: 1,
299
- //洪水水波高度
261
+ maxHeight: 2000,
262
+ floodColor: "rgba(149,232,249,0.5)",
263
+ floodSpeed: 500,
264
+ specularIntensity: 2,
300
265
  amplitude: 10,
301
- //洪水水纹速度
302
266
  animationSpeed: 0.01,
303
- //洪水水纹频率
304
- frequency: 1000,
305
- //洪水分析组件对象
306
- floodAnalyse: undefined
267
+ frequency: 500,
268
+ floodAnalysis: null
307
269
  };
308
270
  },
309
- mounted() {
310
- //视点跳转
311
- window.CesiumZondy.getWebGlobeByInterval(function(webGlobe) {
312
- let sceneManager = new window.CesiumZondy.Manager.SceneManager({
271
+ methods: {
272
+ handleLoad(e) {
273
+ const { component, Cesium } = e;
274
+ Cesium.Ion.defaultAccessToken =
275
+ "eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJqdGkiOiJiM2Q0ZGMxYy1iZGZkLTQ4OWItODlhMy1iOWNkMDE0M2U3YWEiLCJpZCI6NTEzNSwiaWF0IjoxNjA2MjE0OTkyfQ.2aktNrUASlLsPwSFtkgKBTQLJTAnOTyjgKDRQmnafiE";
276
+ const { webGlobe } = component;
277
+ webGlobe.viewer.camera.setView({
278
+ direction: {
279
+ x: 0.4680575394156845,
280
+ y: -0.8267033643312148,
281
+ z: 0.31222377744109403
282
+ },
283
+ position: {
284
+ x: -674271.5790185562,
285
+ y: 5530042.656916835,
286
+ z: 3232882.3357299212
287
+ }
288
+ });
289
+ //构造视图功能管理对象(视图)
290
+ var sceneManager = new CesiumZondy.Manager.SceneManager({
313
291
  viewer: webGlobe.viewer
314
292
  });
315
- sceneManager.flyToEx(115, 30, {
316
- height: 100,
317
- heading: 30,
318
- pitch: -10,
293
+ //视点跳转(经度,纬度,视角高度,方位角,俯仰角,翻滚角)
294
+ sceneManager.flyToEx(121, 24, {
295
+ height: 5900,
296
+ heading: 60,
297
+ pitch: -16,
319
298
  roll: 0
320
299
  });
321
- });
322
- },
323
- methods: {
300
+ },
324
301
  //洪水分析组件加载完毕事件
325
- load(floodAnalyse) {
326
- this.floodAnalyse = floodAnalyse;
302
+ load(floodAnalysis) {
303
+ this.floodAnalysis = floodAnalysis;
327
304
  },
328
- //开始洪水分析
329
- startAnalyse() {
330
- this.floodAnalyse.startAnalyse();
305
+ //开始洪水淹没分析
306
+ analysis() {
307
+ this.floodAnalysis.analysis();
331
308
  },
332
- //停止洪水分析
333
- stopAnalyse() {
334
- this.floodAnalyse.stopAnalyse();
309
+ //移除洪水淹没分析
310
+ remove() {
311
+ this.floodAnalysis.remove();
335
312
  }
336
313
  }
337
314
  };
@@ -1,5 +1,3 @@
1
- # 控高分析
2
-
3
1
  > mapgis-3d-heightlimited
4
2
 
5
3
  ## 属性
@@ -69,7 +67,9 @@ mapgis-web-scene组件的ID,当使用多个mapgis-web-scene组件时,需要
69
67
  :vue-index="vueIndex"
70
68
  :debugShowBoundingVolume="debugShowBoundingVolume"
71
69
  />
70
+ <mapgis-ui-card class="storybook-ui-card">
72
71
  <mapgis-3d-heightlimited :vue-index="vueIndex"></mapgis-3d-heightlimited>
72
+ </mapgis-ui-card>
73
73
  </mapgis-web-scene>
74
74
  </div>
75
75
  </template>
@@ -100,8 +100,11 @@ export default {
100
100
  </script>
101
101
 
102
102
  <style scoped>
103
- .ant-btn-primary {
104
- margin-left: 10px;
103
+ .storybook-ui-card{
104
+ position: absolute;
105
+ top: 10px;
106
+ left: 10px;
107
+ z-index: 1000;
105
108
  }
106
109
  </style>
107
110
  ```