@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
@@ -0,0 +1,240 @@
1
+ > mapgis-3d-analysis-contour
2
+
3
+ ## 属性
4
+
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`
14
+
15
+ - **类型:** `Number`
16
+ - **可选**
17
+ - **非侦听属性**
18
+ - **默认值:** `(Math.random() * 100000000).toFixed(0)`随机计算值
19
+ - **描述:** 当 mapgis-web-scene 插槽中使用了多个相同组件时,例如多个 mapgis-3d-igs-doc-layer 组件,用来区分组件的标识符。
20
+
21
+ ### `contourSpacing`
22
+
23
+ - **类型:** `Number`
24
+ - **可选**
25
+ - **默认值:** `150`
26
+ - **侦听属性**
27
+ - **描述:** 等高线间距,单位米
28
+
29
+ ### `contourWidth`
30
+
31
+ - **类型:** `Number`
32
+ - **可选**
33
+ - **默认值:** `2`
34
+ - **侦听属性**
35
+ - **描述:** 等高线宽度
36
+
37
+ ### `contourColor`
38
+
39
+ - **类型:** `String`
40
+ - **可选**
41
+ - **默认值:** `rgb(255,0,0)`
42
+ - **侦听属性**
43
+ - **描述:** 等高线颜色
44
+
45
+ ## 方法
46
+
47
+ ### `analysis`
48
+
49
+ - **Description:** 等值线分析
50
+
51
+ ### `remove`
52
+
53
+ - **Description:** 移除等值线分析对象,移除等值线分析结果。
54
+
55
+ ## 事件
56
+
57
+ ### `@load`
58
+
59
+ - **Description:** 在 Contour 加载完毕后发送该事件
60
+ - **Payload** 等值线分析对象
61
+
62
+ ## 示例
63
+
64
+ ### 非插槽方式
65
+
66
+ ```vue
67
+ <template>
68
+ <mapgis-web-scene style="{height: '100vh'}" v-on:load="handleLoad">
69
+ <mapgis-3d-ogc-wmts-layer
70
+ :baseUrl="url"
71
+ :wmtsLayer="layer"
72
+ :tileMatrixSet="tileMatrixSet"
73
+ :format="format"
74
+ :tilingScheme="tilingScheme"
75
+ :token="token"
76
+ ></mapgis-3d-ogc-wmts-layer>
77
+ <mapgis-3d-igs-terrain :url="terrainUrl" :requestVertexNormals="true" />
78
+ <mapgis-ui-card class="storybook-ui-card">
79
+ <mapgis-3d-analysis-contour
80
+ :contourSpacing="contourSpacing"
81
+ :contourWidth="contourWidth"
82
+ :contourColor="contourColor"
83
+ />
84
+ </mapgis-ui-card>
85
+ </mapgis-web-scene>
86
+ </template>
87
+
88
+ <script>
89
+ export default {
90
+ data() {
91
+ return {
92
+ url: "http://t0.tianditu.gov.cn/img_c/wmts",
93
+ //地形url TODO这里地址打包的时候改一下
94
+ terrainUrl: "http://192.168.21.191:6163/igs/rest/g3d/terrain",
95
+ tileMatrixSet: "c",
96
+ tilingScheme: "EPSG:4326",
97
+ layer: "img",
98
+ format: "tiles",
99
+ token: {
100
+ key: "tk",
101
+ value: "2ddaabf906d4b5418aed0078e1657029"
102
+ },
103
+ contourSpacing: 150,
104
+ contourWidth: 2,
105
+ contourColor: "rgb(255,0,0)"
106
+ };
107
+ },
108
+ methods: {
109
+ handleLoad(e) {
110
+ const { component, Cesium } = e;
111
+ Cesium.Ion.defaultAccessToken =
112
+ "eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJqdGkiOiJiM2Q0ZGMxYy1iZGZkLTQ4OWItODlhMy1iOWNkMDE0M2U3YWEiLCJpZCI6NTEzNSwiaWF0IjoxNjA2MjE0OTkyfQ.2aktNrUASlLsPwSFtkgKBTQLJTAnOTyjgKDRQmnafiE";
113
+ const { webGlobe } = component;
114
+ webGlobe.viewer.camera.setView({
115
+ direction: {
116
+ x: 0.4680575394156845,
117
+ y: -0.8267033643312148,
118
+ z: 0.31222377744109403
119
+ },
120
+ position: {
121
+ x: -674271.5790185562,
122
+ y: 5530042.656916835,
123
+ z: 3232882.3357299212
124
+ }
125
+ });
126
+ //构造视图功能管理对象(视图)
127
+ var sceneManager = new CesiumZondy.Manager.SceneManager({
128
+ viewer: webGlobe.viewer
129
+ });
130
+ //视点跳转(经度,纬度,视角高度,方位角,俯仰角,翻滚角)
131
+ sceneManager.flyToEx(121, 24, {
132
+ height: 5900,
133
+ heading: 60,
134
+ pitch: -16,
135
+ roll: 0
136
+ });
137
+ }
138
+ }
139
+ };
140
+ </script>
141
+ ```
142
+
143
+ ## 自定义界面-插槽方式
144
+
145
+ ```vue
146
+ <template>
147
+ <mapgis-web-scene style="{height: '100vh'}" v-on:load="handleLoad">
148
+ <mapgis-3d-ogc-wmts-layer
149
+ :baseUrl="url"
150
+ :wmtsLayer="layer"
151
+ :tileMatrixSet="tileMatrixSet"
152
+ :format="format"
153
+ :tilingScheme="tilingScheme"
154
+ :token="token"
155
+ ></mapgis-3d-ogc-wmts-layer>
156
+ <mapgis-3d-igs-terrain :url="terrainUrl" :requestVertexNormals="true" />
157
+ <mapgis-ui-card class="storybook-ui-card">
158
+ <mapgis-3d-analysis-contour
159
+ :contourSpacing="contourSpacing"
160
+ :contourWidth="contourWidth"
161
+ :contourColor="contourColor"
162
+ @load="load"
163
+ >
164
+ <!-- 这里是自定义的界面-->
165
+ <div>
166
+ <button @click="analysis">分析</button>
167
+ <button @click="remove">清除</button>
168
+ </div>
169
+ </mapgis-3d-analysis-contour>
170
+ </mapgis-ui-card>
171
+ </mapgis-web-scene>
172
+ </template>
173
+
174
+ <script>
175
+ export default {
176
+ data() {
177
+ return {
178
+ url: "http://t0.tianditu.gov.cn/img_c/wmts",
179
+ //地形url TODO这里地址打包的时候改一下
180
+ terrainUrl: "http://192.168.21.191:6163/igs/rest/g3d/terrain",
181
+ tileMatrixSet: "c",
182
+ tilingScheme: "EPSG:4326",
183
+ layer: "img",
184
+ format: "tiles",
185
+ token: {
186
+ key: "tk",
187
+ value: "2ddaabf906d4b5418aed0078e1657029"
188
+ },
189
+ contourSpacing: 150,
190
+ contourWidth: 2,
191
+ contourColor: "rgb(255,0,0)",
192
+ contourAnalysis: null
193
+ };
194
+ },
195
+ methods: {
196
+ handleLoad(e) {
197
+ const { component, Cesium } = e;
198
+ Cesium.Ion.defaultAccessToken =
199
+ "eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJqdGkiOiJiM2Q0ZGMxYy1iZGZkLTQ4OWItODlhMy1iOWNkMDE0M2U3YWEiLCJpZCI6NTEzNSwiaWF0IjoxNjA2MjE0OTkyfQ.2aktNrUASlLsPwSFtkgKBTQLJTAnOTyjgKDRQmnafiE";
200
+ const { webGlobe } = component;
201
+ webGlobe.viewer.camera.setView({
202
+ direction: {
203
+ x: 0.4680575394156845,
204
+ y: -0.8267033643312148,
205
+ z: 0.31222377744109403
206
+ },
207
+ position: {
208
+ x: -674271.5790185562,
209
+ y: 5530042.656916835,
210
+ z: 3232882.3357299212
211
+ }
212
+ });
213
+ //构造视图功能管理对象(视图)
214
+ var sceneManager = new CesiumZondy.Manager.SceneManager({
215
+ viewer: webGlobe.viewer
216
+ });
217
+ //视点跳转(经度,纬度,视角高度,方位角,俯仰角,翻滚角)
218
+ sceneManager.flyToEx(121, 24, {
219
+ height: 5900,
220
+ heading: 60,
221
+ pitch: -16,
222
+ roll: 0
223
+ });
224
+ },
225
+ //等值线分析组件加载完毕事件
226
+ load(contourAnalysis) {
227
+ this.contourAnalysis = contourAnalysis;
228
+ },
229
+ //开始等值线分析
230
+ analysis() {
231
+ this.contourAnalysis.analysis();
232
+ },
233
+ //移除等值线分析
234
+ remove() {
235
+ this.contourAnalysis.remove();
236
+ }
237
+ }
238
+ };
239
+ </script>
240
+ ```
@@ -0,0 +1,306 @@
1
+ > mapgis-3d-analysis-cut-fill
2
+
3
+ ## 属性
4
+
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`
14
+
15
+ - **类型:** `Number`
16
+ - **可选**
17
+ - **非侦听属性**
18
+ - **默认值:** `(Math.random() * 100000000).toFixed(0)`随机计算值
19
+ - **描述:** 当 mapgis-web-scene 插槽中使用了多个相同组件时,例如多个 mapgis-3d-igs-doc-layer 组件,用来区分组件的标识符。
20
+
21
+ ### `xPaneNum`
22
+
23
+ - **类型:** `Number`
24
+ - **可选**
25
+ - **默认值:** `16`
26
+ - **侦听属性**
27
+ - **描述:** X 坐标方向采样点的个数
28
+
29
+ ### `yPaneNum`
30
+
31
+ - **类型:** `Number`
32
+ - **可选**
33
+ - **默认值:** `16`
34
+ - **侦听属性**
35
+ - **描述:** Y 坐标方向采样点的个数
36
+
37
+ ### `height`
38
+
39
+ - **类型:** `Number`
40
+ - **可选**
41
+ - **默认值:** `2000`
42
+ - **侦听属性**
43
+ - **描述:** 平整高程
44
+
45
+ ### `lineColor`
46
+
47
+ - **类型:** `String`
48
+ - **可选**
49
+ - **默认值:** `rgba(0,255,0,1)`
50
+ - **侦听属性**
51
+ - **描述:** 分析区域边界颜色
52
+
53
+ ### `fillColor`
54
+
55
+ - **类型:** `String`
56
+ - **可选**
57
+ - **默认值:** `rgba(0,0,255,0.3)`
58
+ - **侦听属性**
59
+ - **描述:** 分析区域面颜色
60
+
61
+ ### `dataType`
62
+
63
+ - **类型:** `Number`
64
+ - **可选**
65
+ - **默认值:** `2.0`
66
+ - **非侦听属性**
67
+ - **描述:** 数据类型,0.0:地形,1.0:模型,2.0:通用
68
+
69
+ ### `useMask`
70
+
71
+ - **类型:** `Boolean`
72
+ - **可选**
73
+ - **默认值:** `true`
74
+ - **非侦听属性**
75
+ - **描述:** 是否使用内置的遮罩层
76
+
77
+ ## 方法
78
+
79
+ ### `analysis`
80
+
81
+ - **Description:** 填挖方分析
82
+
83
+ ### `remove`
84
+
85
+ - **Description:** 移除填挖方分析对象,移除填挖方分析结果。
86
+
87
+ ### `refresh`
88
+
89
+ - **Description:** 重新计算,分析区域不变,修改设置参数后,重新进行分析。
90
+
91
+ ## 事件
92
+
93
+ ### `@load`
94
+
95
+ - **Description:** 在 CutFill 加载完毕后发送该事件
96
+ - **Payload** 填挖方分析对象
97
+
98
+ ### `@start`
99
+
100
+ - **Description:** 在绘制结束后,开始分析前发送该事件
101
+
102
+ ### `@success`
103
+
104
+ - **Description:** 在分析结束后发送该事件
105
+ - **Payload** 分析结果{minHeight,maxHeight,surfaceArea,cutVolume,fillVolume}
106
+
107
+ ### `@remove`
108
+
109
+ - **Description:** 在移除分析对象和分析结果后,发送该事件
110
+
111
+ ## 示例
112
+
113
+ ### 非插槽方式
114
+
115
+ ```vue
116
+ <template>
117
+ <mapgis-web-scene style="{height: '100vh'}" v-on:load="handleLoad">
118
+ <mapgis-3d-ogc-wmts-layer
119
+ :baseUrl="url"
120
+ :wmtsLayer="layer"
121
+ :tileMatrixSet="tileMatrixSet"
122
+ :format="format"
123
+ :tilingScheme="tilingScheme"
124
+ :token="token"
125
+ ></mapgis-3d-ogc-wmts-layer>
126
+ <mapgis-3d-igs-terrain :url="terrainUrl" :requestVertexNormals="true" />
127
+ <mapgis-ui-card class="storybook-ui-card">
128
+ <mapgis-3d-analysis-cut-fill
129
+ :xPaneNum="xPaneNum"
130
+ :yPaneNum="yPaneNum"
131
+ :height="height"
132
+ :lineColor="lineColor"
133
+ :fillColor="fillColor"
134
+ :dataType="dataType"
135
+ />
136
+ </mapgis-ui-card>
137
+ </mapgis-web-scene>
138
+ </template>
139
+
140
+ <script>
141
+ export default {
142
+ data() {
143
+ return {
144
+ url: "http://t0.tianditu.gov.cn/img_c/wmts",
145
+ //地形url TODO这里地址打包的时候改一下
146
+ terrainUrl: "http://192.168.21.191:6163/igs/rest/g3d/terrain",
147
+ tileMatrixSet: "c",
148
+ tilingScheme: "EPSG:4326",
149
+ layer: "img",
150
+ format: "tiles",
151
+ token: {
152
+ key: "tk",
153
+ value: "2ddaabf906d4b5418aed0078e1657029"
154
+ },
155
+ xPaneNum: 16,
156
+ yPaneNum: 16,
157
+ height: 2000,
158
+ lineColor: "rgba(0,255,0,1)",
159
+ fillColor: "rgba(0,0,255,0.3)",
160
+ dataType: 2.0
161
+ };
162
+ },
163
+ methods: {
164
+ handleLoad(e) {
165
+ const { component, Cesium } = e;
166
+ Cesium.Ion.defaultAccessToken =
167
+ "eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJqdGkiOiJiM2Q0ZGMxYy1iZGZkLTQ4OWItODlhMy1iOWNkMDE0M2U3YWEiLCJpZCI6NTEzNSwiaWF0IjoxNjA2MjE0OTkyfQ.2aktNrUASlLsPwSFtkgKBTQLJTAnOTyjgKDRQmnafiE";
168
+ const { webGlobe } = component;
169
+ webGlobe.viewer.camera.setView({
170
+ direction: {
171
+ x: 0.4680575394156845,
172
+ y: -0.8267033643312148,
173
+ z: 0.31222377744109403
174
+ },
175
+ position: {
176
+ x: -674271.5790185562,
177
+ y: 5530042.656916835,
178
+ z: 3232882.3357299212
179
+ }
180
+ });
181
+ //构造视图功能管理对象(视图)
182
+ var sceneManager = new CesiumZondy.Manager.SceneManager({
183
+ viewer: webGlobe.viewer
184
+ });
185
+ //视点跳转(经度,纬度,视角高度,方位角,俯仰角,翻滚角)
186
+ sceneManager.flyToEx(121, 24, {
187
+ height: 5900,
188
+ heading: 60,
189
+ pitch: -16,
190
+ roll: 0
191
+ });
192
+ }
193
+ }
194
+ };
195
+ </script>
196
+ ```
197
+
198
+ ## 自定义界面-插槽方式
199
+
200
+ ```vue
201
+ <template>
202
+ <mapgis-web-scene style="{height: '100vh'}" v-on:load="handleLoad">
203
+ <mapgis-3d-ogc-wmts-layer
204
+ :baseUrl="url"
205
+ :wmtsLayer="layer"
206
+ :tileMatrixSet="tileMatrixSet"
207
+ :format="format"
208
+ :tilingScheme="tilingScheme"
209
+ :token="token"
210
+ ></mapgis-3d-ogc-wmts-layer>
211
+ <mapgis-3d-igs-terrain :url="terrainUrl" :requestVertexNormals="true" />
212
+ <mapgis-ui-card class="storybook-ui-card">
213
+ <mapgis-3d-analysis-cut-fill
214
+ :xPaneNum="xPaneNum"
215
+ :yPaneNum="yPaneNum"
216
+ :height="height"
217
+ :lineColor="lineColor"
218
+ :fillColor="fillColor"
219
+ :dataType="dataType"
220
+ @load="load"
221
+ @success="success"
222
+ >
223
+ <!-- 这里是自定义的界面-->
224
+ <div>
225
+ <button @click="analysis">分析</button>
226
+ <button @click="remove">清除</button>
227
+ </div>
228
+ </mapgis-3d-analysis-cut-fill>
229
+ </mapgis-ui-card>
230
+ </mapgis-web-scene>
231
+ </template>
232
+
233
+ <script>
234
+ export default {
235
+ data() {
236
+ return {
237
+ url: "http://t0.tianditu.gov.cn/img_c/wmts",
238
+ //地形url TODO这里地址打包的时候改一下
239
+ terrainUrl: "http://192.168.21.191:6163/igs/rest/g3d/terrain",
240
+ tileMatrixSet: "c",
241
+ tilingScheme: "EPSG:4326",
242
+ layer: "img",
243
+ format: "tiles",
244
+ token: {
245
+ key: "tk",
246
+ value: "2ddaabf906d4b5418aed0078e1657029"
247
+ },
248
+ xPaneNum: 16,
249
+ yPaneNum: 16,
250
+ height: 2000,
251
+ lineColor: "rgba(0,255,0,1)",
252
+ fillColor: "rgba(0,0,255,0.3)",
253
+ dataType: 2.0,
254
+ cutfillAnalysis: null
255
+ };
256
+ },
257
+ methods: {
258
+ handleLoad(e) {
259
+ const { component, Cesium } = e;
260
+ Cesium.Ion.defaultAccessToken =
261
+ "eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJqdGkiOiJiM2Q0ZGMxYy1iZGZkLTQ4OWItODlhMy1iOWNkMDE0M2U3YWEiLCJpZCI6NTEzNSwiaWF0IjoxNjA2MjE0OTkyfQ.2aktNrUASlLsPwSFtkgKBTQLJTAnOTyjgKDRQmnafiE";
262
+ const { webGlobe } = component;
263
+ webGlobe.viewer.camera.setView({
264
+ direction: {
265
+ x: 0.4680575394156845,
266
+ y: -0.8267033643312148,
267
+ z: 0.31222377744109403
268
+ },
269
+ position: {
270
+ x: -674271.5790185562,
271
+ y: 5530042.656916835,
272
+ z: 3232882.3357299212
273
+ }
274
+ });
275
+ //构造视图功能管理对象(视图)
276
+ var sceneManager = new CesiumZondy.Manager.SceneManager({
277
+ viewer: webGlobe.viewer
278
+ });
279
+ //视点跳转(经度,纬度,视角高度,方位角,俯仰角,翻滚角)
280
+ sceneManager.flyToEx(121, 24, {
281
+ height: 5900,
282
+ heading: 60,
283
+ pitch: -16,
284
+ roll: 0
285
+ });
286
+ },
287
+ //填挖方分析组件加载完毕事件
288
+ load(cutfillAnalysis) {
289
+ this.cutfillAnalysis = cutfillAnalysis;
290
+ },
291
+ //开始填挖方分析
292
+ analysis() {
293
+ this.cutfillAnalysis.analysis();
294
+ },
295
+ //移除填挖方分析
296
+ remove() {
297
+ this.cutfillAnalysis.remove();
298
+ },
299
+ //分析结束事件
300
+ success(result) {
301
+ console.log(result);
302
+ }
303
+ }
304
+ };
305
+ </script>
306
+ ```