@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.
- package/README.md +46 -49
- package/dist-libs/webclient-vue-cesium.common.js +191087 -0
- package/dist-libs/webclient-vue-cesium.css +1 -1
- package/dist-libs/webclient-vue-cesium.umd.js +191097 -0
- package/dist-libs/webclient-vue-cesium.umd.min.js +204 -194
- package/docs/.vuepress/config.js +47 -46
- package/docs/README.md +5 -4
- package/docs/api/analysis/Aspect.md +236 -0
- package/docs/api/analysis/Contour.md +240 -0
- package/docs/api/analysis/CutFill.md +306 -0
- package/docs/api/analysis/DynamicSection.md +336 -0
- package/docs/api/analysis/Excavate.md +3 -11
- package/docs/api/analysis/Flood.md +177 -200
- package/docs/api/analysis/HeightLimited.md +7 -4
- package/docs/api/analysis/ParticleEffects.md +549 -0
- package/docs/api/analysis/Profile.md +464 -0
- package/docs/api/analysis/Shadow.md +76 -13
- package/docs/api/analysis/Sightline.md +66 -13
- package/docs/api/analysis/Skyline.md +144 -29
- package/docs/api/analysis/Slope.md +236 -0
- package/docs/api/analysis/Viewshed.md +100 -21
- package/docs/api/layer/IGServer/IgsDocLayer.md +10 -0
- package/docs/api/layer/IGServer/IgsFeatureLayer.md +253 -0
- package/docs/api/layer/IGServer/IgsTileLayer.md +11 -0
- package/docs/api/layer/OGC/CesiumOgcWmsLayer.md +20 -19
- package/docs/api/layer/OGC/Wms.png +0 -0
- package/docs/api/layer/marker/DynamicMarker.md +81 -0
- package/docs/api/layer/marker/dynamicmarker.png +0 -0
- package/docs/api/layer/marker/selects.png +0 -0
- package/docs/api/layer/vectortile/vectortile.md +10 -0
- package/docs/api/m3d/image/layer_control_1.png +0 -0
- package/docs/api/m3d/image/layer_control_2.png +0 -0
- package/docs/api/m3d/image/layer_control_3.png +0 -0
- package/docs/api/m3d/m3d.md +13 -2
- package/docs/api/service/comprehensiveQuery/comprehensiveQuery.md +946 -0
- package/docs/api/ui/draw.md +68 -40
- package/docs/api/ui/link.md +8 -1
- package/docs/api/ui/marker.md +19 -1
- package/docs/api/ui/measure.md +82 -10
- package/docs/api/ui/table.md +6 -6
- package/docs/guide/README.md +26 -23
- package/docs/guide/basemap.md +35 -33
- package/docs/guide/markers&popups.md +46 -53
- package/docs/plugin_components/create_storybook.md +241 -0
- package/docs/plugin_components/img.png +0 -0
- package/docs/plugin_components/img_1.png +0 -0
- package/docs/plugin_components/img_10.png +0 -0
- package/docs/plugin_components/img_2.png +0 -0
- package/docs/plugin_components/img_3.png +0 -0
- package/docs/plugin_components/img_4.png +0 -0
- package/docs/plugin_components/img_5.png +0 -0
- package/docs/plugin_components/img_6.png +0 -0
- package/docs/plugin_components/img_7.png +0 -0
- package/docs/plugin_components/img_8.png +0 -0
- package/docs/version/diff.md +4 -4
- package/docs/version/version.md +81 -0
- package/package.json +5 -5
- package/src/cdn/cdn_component.js +62 -0
- package/src/component.js +20 -2
- package/src/components/Analysis/Aspect.vue +318 -0
- package/src/components/Analysis/Contour.vue +257 -0
- package/src/components/Analysis/CutFill.vue +581 -0
- package/src/components/Analysis/DynamicCutting.vue +98 -59
- package/src/components/Analysis/DynamicSection.vue +494 -0
- package/src/components/Analysis/Excavate.vue +133 -87
- package/src/components/Analysis/Flood.vue +395 -487
- package/src/components/Analysis/Flood.vue-- +630 -0
- package/src/components/Analysis/HeightLimited.vue +66 -47
- package/src/components/Analysis/ModelFlatten.vue +2 -2
- package/src/components/Analysis/Profile.vue +503 -0
- package/src/components/Analysis/Shadow.vue +220 -309
- package/src/components/Analysis/Sightline.vue +393 -375
- package/src/components/Analysis/SkyLine.vue +283 -93
- package/src/components/Analysis/Slope.vue +317 -0
- package/src/components/Analysis/Viewshed.vue +806 -373
- package/src/components/Analysis/skyline2dChartOptions.js +66 -0
- package/src/components/DataSource/Geojson/GeoJsonDataSource.vue +201 -3
- package/src/components/Layer/GeoJSON/GeoJsonLayer.vue +345 -0
- package/src/components/Layer/IGServer/IgsFeatureLayer.vue +227 -0
- package/src/components/Layer/Marker/DynamicMarkerLayer.vue +487 -0
- package/src/components/Layer/Marker/Marker3dPro.vue +196 -0
- package/src/components/Layer/Marker/Marker3dSetPro.vue +67 -0
- package/src/components/Layer/VectorTile/VectorTileLayer.vue +117 -33
- package/src/components/Layer/VectorTile/VectorTileOptions.js +1 -1
- package/src/components/M3D/3DTilesetOptions.js +23 -1
- package/src/components/M3D/G3D.vue +150 -0
- package/src/components/M3D/M3d.vue +142 -32
- package/src/components/M3D/M3dSet.vue +118 -0
- package/src/components/M3D/M3dType.js +24 -0
- package/src/components/Overlay/Mapv3dLayer.vue +2 -0
- package/src/components/Overlay/ParticleEffects.vue +545 -0
- package/src/components/Overlay/mapv/MapvBaseLayer.js +351 -172
- package/src/components/Overlay/mapv/MapvLayer.js +372 -324
- package/src/components/Overlay/mapv/SuperCluster.js +611 -0
- package/src/components/Overlay/themeLayer/heater/CesiumHeater.vue +152 -0
- package/src/components/Overlay/themeLayer/heater/MapvHeater.vue +161 -0
- package/src/components/UI/Controls/Draw/Draw.vue +320 -92
- package/src/components/UI/Controls/Legend/Legend.vue +55 -51
- package/src/components/UI/Controls/Link/Link.vue +59 -37
- package/src/components/UI/Controls/Measure/Measure.vue +75 -33
- package/src/components/UI/Controls/Measure/components/MeasureResult.vue +71 -0
- package/src/components/UI/Controls/Measure/components/MeasureSetting.vue +63 -0
- package/src/components/UI/Controls/Measure/components/MeasureTool.vue +155 -0
- package/src/components/UI/Geojson/Popup.vue +101 -0
- package/src/components/UI/Marker/Marker.vue +185 -48
- package/src/components/UI/Popup/Popup.vue +21 -64
- package/src/components/Utils/common/color-util.js +159 -0
- package/src/components/Utils/util.js +311 -231
- package/src/components/WebGlobe/manager.js +81 -3
- package/src/components/WebGlobe/mixins/withPrivateMethods.js +4 -2
- package/src/components/WebGlobe/util.js +173 -0
- package/src/components/service/comprehensive-query/ComprehensiveQuery.vue +156 -0
- package/src/components/service/comprehensive-query/PlaceNameCesium.vue +102 -0
- package/src/components/service/comprehensive-query/util/catalog/document.js +626 -0
- package/src/components/service/comprehensive-query/util/feature/arcgis-feature-query.js +448 -0
- package/src/components/service/comprehensive-query/util/feature/feature-convert.js +408 -0
- package/src/components/service/comprehensive-query/util/feature/feature-edit.js +50 -0
- package/src/components/service/comprehensive-query/util/feature/feature-geojson.js +100 -0
- package/src/components/service/comprehensive-query/util/feature/feature-query.js +723 -0
- package/src/components/service/comprehensive-query/util/feature/feature.js +1 -0
- package/src/components/service/comprehensive-query/util/feature/index.js +9 -0
- package/src/components/service/comprehensive-query/util/objects/geometry.js +58 -0
- package/src/components/Overlay/Mapv.vue +0 -142
- package/src/components/Overlay/MapvHeater.vue +0 -98
|
@@ -0,0 +1,336 @@
|
|
|
1
|
+
> mapgis-3d-dynamic-section
|
|
2
|
+
|
|
3
|
+
## 属性
|
|
4
|
+
|
|
5
|
+
### `models`
|
|
6
|
+
|
|
7
|
+
- **类型:** `Array`
|
|
8
|
+
- **可选**
|
|
9
|
+
- **默认值:** []
|
|
10
|
+
- **侦听属性**
|
|
11
|
+
- **描述:** 模型集合,一个模型对象包含三个字段:range,vueIndex 和 title
|
|
12
|
+
|
|
13
|
+
```javaScript
|
|
14
|
+
[{
|
|
15
|
+
range: { // 模型包围盒范围
|
|
16
|
+
xmin: -10000,
|
|
17
|
+
xmax: 10000,
|
|
18
|
+
ymin: -10000,
|
|
19
|
+
ymax: 10000,
|
|
20
|
+
zmin: -10000,
|
|
21
|
+
zmax: 10000,
|
|
22
|
+
},
|
|
23
|
+
vueIndex: 1, // 模型加载对应的vueIndex
|
|
24
|
+
title: "钻孔_2_钻孔模型s", // 模型名
|
|
25
|
+
}]
|
|
26
|
+
```
|
|
27
|
+
|
|
28
|
+
### `axis`
|
|
29
|
+
|
|
30
|
+
- **类型:** `String`
|
|
31
|
+
- **可选**
|
|
32
|
+
- **默认值:** `X`
|
|
33
|
+
- **侦听属性**
|
|
34
|
+
- **描述:** 坐标轴,可设置为 X,Y,Z
|
|
35
|
+
|
|
36
|
+
### `color`
|
|
37
|
+
|
|
38
|
+
- **类型:** `String`
|
|
39
|
+
- **可选**
|
|
40
|
+
- **默认值:** `rgba(200,200,200,0.5)`
|
|
41
|
+
- **侦听属性**
|
|
42
|
+
- **描述:** 剖切面颜色
|
|
43
|
+
|
|
44
|
+
### `time`
|
|
45
|
+
|
|
46
|
+
- **类型:** `Number`
|
|
47
|
+
- **可选**
|
|
48
|
+
- **默认值:** `10`
|
|
49
|
+
- **侦听属性**
|
|
50
|
+
- **描述:** 自动播放时间,单位秒
|
|
51
|
+
|
|
52
|
+
### `distance`
|
|
53
|
+
|
|
54
|
+
- **类型:** `Number`
|
|
55
|
+
- **可选**
|
|
56
|
+
- **默认值:** `0`
|
|
57
|
+
- **侦听属性**
|
|
58
|
+
- **描述:** 剖切距离,剖切面距离剖切对象包围盒中心点的距离
|
|
59
|
+
|
|
60
|
+
### `vueKey`
|
|
61
|
+
|
|
62
|
+
- **类型:** `String`
|
|
63
|
+
- **可选**
|
|
64
|
+
- **非侦听属性**
|
|
65
|
+
- **默认值:** `default`
|
|
66
|
+
- **描述:** mapgis-web-scene 组件的 ID,当使用多个 mapgis-web-scene 组件时,需要指定该值,来唯一标识 mapgis-web-scene 组件,同时 mapgis-web-scene 插槽中的组件也需要传入相同的 vueKey,让组件知道应该作用于哪一个 mapgis-web-scene。
|
|
67
|
+
|
|
68
|
+
### `vueIndex`
|
|
69
|
+
|
|
70
|
+
- **类型:** `Number`
|
|
71
|
+
- **可选**
|
|
72
|
+
- **非侦听属性**
|
|
73
|
+
- **默认值:** `(Math.random() * 100000000).toFixed(0)`随机计算值
|
|
74
|
+
- **描述:** 当 mapgis-web-scene 插槽中使用了多个相同组件时,例如多个 mapgis-3d-igs-doc-layer 组件,用来区分组件的标识符。
|
|
75
|
+
|
|
76
|
+
## 事件
|
|
77
|
+
|
|
78
|
+
### `@load`
|
|
79
|
+
|
|
80
|
+
- **Description:** 剖切分析组件对象加载完毕事件
|
|
81
|
+
- **Param:** `{DynamicSection}`
|
|
82
|
+
- `DynamicSection` 剖切分析组件对象
|
|
83
|
+
|
|
84
|
+
### `@unload`
|
|
85
|
+
|
|
86
|
+
- **Description:** 剖切分析组件对象移除事件
|
|
87
|
+
- **Param:** `{DynamicSection}`
|
|
88
|
+
- `DynamicSection` 剖切分析组件对象
|
|
89
|
+
|
|
90
|
+
### `@startClipping`
|
|
91
|
+
|
|
92
|
+
- **Description:** 开始剖切分析事件
|
|
93
|
+
|
|
94
|
+
### `@animation`
|
|
95
|
+
|
|
96
|
+
- **Description:** 开启动态剖切事件
|
|
97
|
+
|
|
98
|
+
### `@setDistance`
|
|
99
|
+
|
|
100
|
+
- **Description:** 设置剖切距离
|
|
101
|
+
- **Param:** `{distance}`
|
|
102
|
+
- `distance` 设置剖切距离,剖切面距离剖切对象包围盒中心点的距离
|
|
103
|
+
|
|
104
|
+
### `@stopClipping`
|
|
105
|
+
|
|
106
|
+
- **Description:** 停止剖切分析事件
|
|
107
|
+
|
|
108
|
+
## 插槽
|
|
109
|
+
|
|
110
|
+
### `default`
|
|
111
|
+
|
|
112
|
+
- **Description:** 覆盖插槽即可重写界面
|
|
113
|
+
|
|
114
|
+
## 剖切分析使用方法
|
|
115
|
+
|
|
116
|
+
::: tip
|
|
117
|
+
一定要在 mounted、destroyed 事件中激活如下操作
|
|
118
|
+
|
|
119
|
+
```js
|
|
120
|
+
dynamicMounted(component) {
|
|
121
|
+
component.onOpen();
|
|
122
|
+
},
|
|
123
|
+
dynamicDestroyed(component) {
|
|
124
|
+
component.onClose();
|
|
125
|
+
component.unmount();
|
|
126
|
+
}
|
|
127
|
+
```
|
|
128
|
+
|
|
129
|
+
:::
|
|
130
|
+
|
|
131
|
+
```vue
|
|
132
|
+
<template>
|
|
133
|
+
<mapgis-web-scene style="height: 95vh" v-on:load="handleLoad">
|
|
134
|
+
<mapgis-3d-ogc-wmts-layer
|
|
135
|
+
:baseUrl="url"
|
|
136
|
+
:wmtsLayer="layer"
|
|
137
|
+
:tileMatrixSet="tileMatrixSet"
|
|
138
|
+
:format="format"
|
|
139
|
+
:tilingScheme="tilingScheme"
|
|
140
|
+
:token="token"
|
|
141
|
+
></mapgis-3d-ogc-wmts-layer>
|
|
142
|
+
<mapgis-3d-igs-terrain :url="terrainUrl" :requestVertexNormals="true" />
|
|
143
|
+
<mapgis-3d-igs-m3d :vueIndex="cut.models[0].vueIndex" :url="m3dUrl1" />
|
|
144
|
+
<mapgis-3d-igs-m3d :vueIndex="cut.models[1].vueIndex" :url="m3dUrl2" />
|
|
145
|
+
<mapgis-ui-card class="storybook-ui-card">
|
|
146
|
+
<mapgis-3d-dynamic-section
|
|
147
|
+
@mounted="dynamicMounted"
|
|
148
|
+
@destroyed="dynamicDestroyed"
|
|
149
|
+
v-bind="cut"
|
|
150
|
+
/>
|
|
151
|
+
</mapgis-ui-card>
|
|
152
|
+
</mapgis-web-scene>
|
|
153
|
+
</template>
|
|
154
|
+
|
|
155
|
+
<script>
|
|
156
|
+
export default {
|
|
157
|
+
data() {
|
|
158
|
+
return {
|
|
159
|
+
url: "http://t0.tianditu.gov.cn/img_c/wmts",
|
|
160
|
+
//地形url TODO这里地址打包的时候改一下
|
|
161
|
+
//terrainUrl: "http://192.168.21.191:6163/igs/rest/g3d/terrain",
|
|
162
|
+
terrainUrl: "http://develop.smaryun.com:6163/igs/rest/g3d/terrain",
|
|
163
|
+
tileMatrixSet: "c",
|
|
164
|
+
tilingScheme: "EPSG:4326",
|
|
165
|
+
layer: "img",
|
|
166
|
+
format: "tiles",
|
|
167
|
+
token: {
|
|
168
|
+
key: "tk",
|
|
169
|
+
value: "9c157e9585486c02edf817d2ecbc7752",
|
|
170
|
+
},
|
|
171
|
+
m3dUrl1: "http://develop.smaryun.com:6163/igs/rest/g3d/钻孔_2_钻孔模型s",
|
|
172
|
+
m3dUrl2:
|
|
173
|
+
"http://develop.smaryun.com:6163/igs/rest/g3d/钻孔分层点_Sur_000_Ent",
|
|
174
|
+
cut: {
|
|
175
|
+
models: [
|
|
176
|
+
{
|
|
177
|
+
range: {
|
|
178
|
+
xmin: -10000,
|
|
179
|
+
xmax: 10000,
|
|
180
|
+
ymin: -10000,
|
|
181
|
+
ymax: 10000,
|
|
182
|
+
zmin: -10000,
|
|
183
|
+
zmax: 10000,
|
|
184
|
+
},
|
|
185
|
+
vueIndex: 1,
|
|
186
|
+
title: "钻孔_2_钻孔模型s",
|
|
187
|
+
},
|
|
188
|
+
{
|
|
189
|
+
range: {
|
|
190
|
+
xmin: -10000,
|
|
191
|
+
xmax: 10000,
|
|
192
|
+
ymin: -10000,
|
|
193
|
+
ymax: 10000,
|
|
194
|
+
zmin: -10000,
|
|
195
|
+
zmax: 10000,
|
|
196
|
+
},
|
|
197
|
+
vueIndex: 2,
|
|
198
|
+
title: "钻孔分层点",
|
|
199
|
+
},
|
|
200
|
+
],
|
|
201
|
+
axis: "X",
|
|
202
|
+
color: "rgb(200,200,200,0.5)",
|
|
203
|
+
time: 10,
|
|
204
|
+
distance: 0,
|
|
205
|
+
},
|
|
206
|
+
};
|
|
207
|
+
},
|
|
208
|
+
methods: {
|
|
209
|
+
handleLoad(e) {
|
|
210
|
+
const { component, Cesium } = e;
|
|
211
|
+
Cesium.Ion.defaultAccessToken =
|
|
212
|
+
"eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJqdGkiOiJiM2Q0ZGMxYy1iZGZkLTQ4OWItODlhMy1iOWNkMDE0M2U3YWEiLCJpZCI6NTEzNSwiaWF0IjoxNjA2MjE0OTkyfQ.2aktNrUASlLsPwSFtkgKBTQLJTAnOTyjgKDRQmnafiE";
|
|
213
|
+
},
|
|
214
|
+
dynamicMounted(component) {
|
|
215
|
+
component.onOpen();
|
|
216
|
+
},
|
|
217
|
+
dynamicDestroyed(component) {
|
|
218
|
+
component.onClose();
|
|
219
|
+
component.unmount();
|
|
220
|
+
},
|
|
221
|
+
},
|
|
222
|
+
};
|
|
223
|
+
</script>
|
|
224
|
+
<style scoped>
|
|
225
|
+
.storybook-ui-card {
|
|
226
|
+
position: absolute;
|
|
227
|
+
width: 400px;
|
|
228
|
+
top: 0;
|
|
229
|
+
left: 0;
|
|
230
|
+
}
|
|
231
|
+
</style>
|
|
232
|
+
```
|
|
233
|
+
|
|
234
|
+
## 自定义界面-插槽方式
|
|
235
|
+
|
|
236
|
+
```vue
|
|
237
|
+
<template>
|
|
238
|
+
<mapgis-web-scene style="height: 95vh" v-on:load="handleLoad">
|
|
239
|
+
<mapgis-3d-ogc-wmts-layer
|
|
240
|
+
:baseUrl="url"
|
|
241
|
+
:wmtsLayer="layer"
|
|
242
|
+
:tileMatrixSet="tileMatrixSet"
|
|
243
|
+
:format="format"
|
|
244
|
+
:tilingScheme="tilingScheme"
|
|
245
|
+
:token="token"
|
|
246
|
+
></mapgis-3d-ogc-wmts-layer>
|
|
247
|
+
<mapgis-3d-igs-terrain :url="terrainUrl" :requestVertexNormals="true" />
|
|
248
|
+
<mapgis-3d-m3d-layer :vueIndex="$props.models[0].vueIndex" :url="m3dUrl1" />
|
|
249
|
+
<mapgis-3d-m3d-layer :vueIndex="$props.models[1].vueIndex" :url="m3dUrl2" />
|
|
250
|
+
<mapgis-ui-card class="storybook-ui-card">
|
|
251
|
+
<mapgis-3d-dynamic-section
|
|
252
|
+
:models="models"
|
|
253
|
+
:axis="axis"
|
|
254
|
+
:color="color"
|
|
255
|
+
:time="time"
|
|
256
|
+
:distance="distance"
|
|
257
|
+
@loaded="loaded"
|
|
258
|
+
>
|
|
259
|
+
<div>
|
|
260
|
+
<!--自定义您的界面-->
|
|
261
|
+
自定义您的界面
|
|
262
|
+
<button @click="start">开始剖切</button>
|
|
263
|
+
</div>
|
|
264
|
+
</mapgis-3d-dynamic-section>
|
|
265
|
+
</mapgis-ui-card>
|
|
266
|
+
</mapgis-web-scene>
|
|
267
|
+
</template>
|
|
268
|
+
|
|
269
|
+
<script>
|
|
270
|
+
export default {
|
|
271
|
+
data() {
|
|
272
|
+
return {
|
|
273
|
+
url: "http://t0.tianditu.gov.cn/img_c/wmts",
|
|
274
|
+
//地形url TODO这里地址打包的时候改一下
|
|
275
|
+
//terrainUrl: "http://192.168.21.191:6163/igs/rest/g3d/terrain",
|
|
276
|
+
terrainUrl: "http://develop.smaryun.com:6163/igs/rest/g3d/terrain",
|
|
277
|
+
tileMatrixSet: "c",
|
|
278
|
+
tilingScheme: "EPSG:4326",
|
|
279
|
+
layer: "img",
|
|
280
|
+
format: "tiles",
|
|
281
|
+
token: {
|
|
282
|
+
key: "tk",
|
|
283
|
+
value: "9c157e9585486c02edf817d2ecbc7752",
|
|
284
|
+
},
|
|
285
|
+
m3dUrl1: "http://develop.smaryun.com:6163/igs/rest/g3d/钻孔_2_钻孔模型s",
|
|
286
|
+
m3dUrl2:
|
|
287
|
+
"http://develop.smaryun.com:6163/igs/rest/g3d/钻孔分层点_Sur_000_Ent",
|
|
288
|
+
dynamicSection: undefined,
|
|
289
|
+
models: [
|
|
290
|
+
{
|
|
291
|
+
range: {
|
|
292
|
+
xmin: -10000,
|
|
293
|
+
xmax: 10000,
|
|
294
|
+
ymin: -10000,
|
|
295
|
+
ymax: 10000,
|
|
296
|
+
zmin: -10000,
|
|
297
|
+
zmax: 10000,
|
|
298
|
+
},
|
|
299
|
+
vueIndex: 1,
|
|
300
|
+
title: "钻孔_2_钻孔模型s",
|
|
301
|
+
},
|
|
302
|
+
{
|
|
303
|
+
range: {
|
|
304
|
+
xmin: -10000,
|
|
305
|
+
xmax: 10000,
|
|
306
|
+
ymin: -10000,
|
|
307
|
+
ymax: 10000,
|
|
308
|
+
zmin: -10000,
|
|
309
|
+
zmax: 10000,
|
|
310
|
+
},
|
|
311
|
+
vueIndex: 2,
|
|
312
|
+
title: "钻孔分层点",
|
|
313
|
+
},
|
|
314
|
+
],
|
|
315
|
+
axis: "X",
|
|
316
|
+
color: "rgb(200,200,200,0.5)",
|
|
317
|
+
time: 10,
|
|
318
|
+
distance: 0,
|
|
319
|
+
};
|
|
320
|
+
},
|
|
321
|
+
methods: {
|
|
322
|
+
load(dynamicSection) {
|
|
323
|
+
this.dynamicSection = dynamicSection;
|
|
324
|
+
},
|
|
325
|
+
start() {
|
|
326
|
+
this.dynamicSection.startClipping();
|
|
327
|
+
},
|
|
328
|
+
handleLoad(e) {
|
|
329
|
+
const { component, Cesium } = e;
|
|
330
|
+
Cesium.Ion.defaultAccessToken =
|
|
331
|
+
"eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJqdGkiOiJiM2Q0ZGMxYy1iZGZkLTQ4OWItODlhMy1iOWNkMDE0M2U3YWEiLCJpZCI6NTEzNSwiaWF0IjoxNjA2MjE0OTkyfQ.2aktNrUASlLsPwSFtkgKBTQLJTAnOTyjgKDRQmnafiE";
|
|
332
|
+
},
|
|
333
|
+
},
|
|
334
|
+
};
|
|
335
|
+
</script>
|
|
336
|
+
```
|
|
@@ -1,16 +1,7 @@
|
|
|
1
|
-
# 开挖分析
|
|
2
|
-
|
|
3
1
|
> mapgis-3d-excavate
|
|
4
2
|
|
|
5
3
|
## 属性
|
|
6
4
|
|
|
7
|
-
### `position`
|
|
8
|
-
|
|
9
|
-
- **类型:** `String`
|
|
10
|
-
- **默认值:** `right`
|
|
11
|
-
- **非侦听属性**
|
|
12
|
-
- **描述:** 分析面板的位置(right:右边 | left: 左边)
|
|
13
|
-
|
|
14
5
|
### `vueKey`
|
|
15
6
|
|
|
16
7
|
- **类型:** `String`
|
|
@@ -32,6 +23,7 @@ mapgis-web-scene组件的ID,当使用多个mapgis-web-scene组件时,需要
|
|
|
32
23
|
- **描述:**
|
|
33
24
|
|
|
34
25
|
```
|
|
26
|
+
通过vueIndex将开挖面绑定在模型上,当只开挖一个模型时,传一个vueIndex即可,当要对多个模型进行开挖时,传入一个[vueIndex]数组即可
|
|
35
27
|
当mapgis-web-scene插槽中使用了多个相同组件时,例如多个mapgis-3d-igs-doc-layer组件,用来区分组件的标识符。
|
|
36
28
|
```
|
|
37
29
|
|
|
@@ -43,8 +35,8 @@ mapgis-web-scene组件的ID,当使用多个mapgis-web-scene组件时,需要
|
|
|
43
35
|
- **描述:** 图层样式,有如下值:
|
|
44
36
|
|
|
45
37
|
```
|
|
46
|
-
material String
|
|
47
|
-
edgeColor String
|
|
38
|
+
material String 控制裁剪面的材质颜色,默认值"#00FFFF"
|
|
39
|
+
edgeColor String 控制裁剪时边界线颜色,默认值"#FF8C00"
|
|
48
40
|
edgeWidth Number 控制边界线宽度,默认值 3
|
|
49
41
|
```
|
|
50
42
|
|