@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
|
@@ -8,10 +8,11 @@
|
|
|
8
8
|
</mapgis-ui-col>
|
|
9
9
|
<mapgis-ui-col :span="16">
|
|
10
10
|
<mapgis-ui-slider
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
|
|
11
|
+
v-model="currentDistanceCopy"
|
|
12
|
+
:defaultValue="currentDistance"
|
|
13
|
+
:min="Number(startDistance)"
|
|
14
|
+
:max="Number(endDistanceCopy)"
|
|
15
|
+
/>
|
|
15
16
|
</mapgis-ui-col>
|
|
16
17
|
</mapgis-ui-row>
|
|
17
18
|
</mapgis-ui-card>
|
|
@@ -20,9 +21,9 @@
|
|
|
20
21
|
</template>
|
|
21
22
|
|
|
22
23
|
<script>
|
|
23
|
-
import {getCesiumBaseObject} from "../Utils/util";
|
|
24
|
+
import { getCesiumBaseObject } from "../Utils/util";
|
|
24
25
|
import BaseLayer from "./BaseLayer";
|
|
25
|
-
import {AnalysisManager} from "../WebGlobe/manager";
|
|
26
|
+
import { AnalysisManager } from "../WebGlobe/manager";
|
|
26
27
|
|
|
27
28
|
export default {
|
|
28
29
|
name: "mapgis-3d-dynamic-cutting",
|
|
@@ -52,20 +53,20 @@ export default {
|
|
|
52
53
|
type: Number,
|
|
53
54
|
default: 0.3
|
|
54
55
|
},
|
|
55
|
-
defaultCutIndex:{
|
|
56
|
+
defaultCutIndex: {
|
|
56
57
|
type: Number,
|
|
57
|
-
default(){
|
|
58
|
+
default() {
|
|
58
59
|
let dIndex;
|
|
59
|
-
if(this.vueIndex instanceof Array){
|
|
60
|
+
if (this.vueIndex instanceof Array) {
|
|
60
61
|
dIndex = this.vueIndex[0];
|
|
61
|
-
}else {
|
|
62
|
+
} else {
|
|
62
63
|
dIndex = this.vueIndex;
|
|
63
64
|
}
|
|
64
65
|
return dIndex;
|
|
65
66
|
}
|
|
66
67
|
},
|
|
67
68
|
vueIndex: {
|
|
68
|
-
type: [Number,Array],
|
|
69
|
+
type: [Number, Array],
|
|
69
70
|
required: true
|
|
70
71
|
}
|
|
71
72
|
},
|
|
@@ -84,7 +85,7 @@ export default {
|
|
|
84
85
|
//剖切结束距离
|
|
85
86
|
endDistanceCopy: 0,
|
|
86
87
|
initSlider: false
|
|
87
|
-
}
|
|
88
|
+
};
|
|
88
89
|
},
|
|
89
90
|
mounted() {
|
|
90
91
|
this.$_initProps();
|
|
@@ -95,11 +96,11 @@ export default {
|
|
|
95
96
|
this.$_unmount();
|
|
96
97
|
},
|
|
97
98
|
methods: {
|
|
98
|
-
$_initWatch(){
|
|
99
|
+
$_initWatch() {
|
|
99
100
|
let vm = this;
|
|
100
|
-
Object.keys(this.$props).forEach(function
|
|
101
|
-
if(key !== "vueKey"){
|
|
102
|
-
vm.$watch(key,function
|
|
101
|
+
Object.keys(this.$props).forEach(function(key) {
|
|
102
|
+
if (key !== "vueKey") {
|
|
103
|
+
vm.$watch(key, function() {
|
|
103
104
|
vm.$_unmount();
|
|
104
105
|
vm.$_mount();
|
|
105
106
|
});
|
|
@@ -112,21 +113,21 @@ export default {
|
|
|
112
113
|
this.endDistanceCopy = Number(this.endDistance);
|
|
113
114
|
},
|
|
114
115
|
$_mount() {
|
|
115
|
-
const {vueKey,vueIndex} = this;
|
|
116
|
+
const { vueKey, vueIndex } = this;
|
|
116
117
|
let Cesium = getCesiumBaseObject(this, "Cesium");
|
|
117
118
|
let CesiumZondy = getCesiumBaseObject(this, "CesiumZondy");
|
|
118
119
|
let vm = this;
|
|
119
|
-
CesiumZondy.getWebGlobeByInterval(function
|
|
120
|
-
vm.$_getM3DByInterval(function
|
|
120
|
+
CesiumZondy.getWebGlobeByInterval(function(webGlobe) {
|
|
121
|
+
vm.$_getM3DByInterval(function(m3d) {
|
|
121
122
|
//模型加载完毕,抛出lioaded事件
|
|
122
|
-
vm.$emit("loaded",vm);
|
|
123
|
+
vm.$emit("loaded", vm);
|
|
123
124
|
//进行剖切分析的面,从上往下切,Cesium.Cartesian3中第一个参数是左右,第二个参数是前后,第三个参数是上下
|
|
124
125
|
let xDirect = 0;
|
|
125
126
|
let yDirect = 0;
|
|
126
127
|
let zDirect = 0;
|
|
127
128
|
let m3dIndex = 0;
|
|
128
|
-
for (let i = 0;i < m3d.length;i++){
|
|
129
|
-
if(Number(m3d[i].key) === vm.defaultCutIndex){
|
|
129
|
+
for (let i = 0; i < m3d.length; i++) {
|
|
130
|
+
if (Number(m3d[i].key) === vm.defaultCutIndex) {
|
|
130
131
|
m3dIndex = i;
|
|
131
132
|
break;
|
|
132
133
|
}
|
|
@@ -162,65 +163,103 @@ export default {
|
|
|
162
163
|
let analysisManager = new CesiumZondy.Manager.AnalysisManager({
|
|
163
164
|
viewer: webGlobe.viewer
|
|
164
165
|
});
|
|
165
|
-
CesiumZondy.AnalysisManager.addSource(
|
|
166
|
+
CesiumZondy.AnalysisManager.addSource(
|
|
167
|
+
vueKey,
|
|
168
|
+
vueIndex instanceof Array ? vueIndex[0] : vueIndex,
|
|
169
|
+
analysisManager
|
|
170
|
+
);
|
|
166
171
|
let color = Cesium.Color.fromCssColorString(vm.color);
|
|
167
|
-
color = Cesium.Color.fromAlpha(color,vm.opacity)
|
|
168
|
-
let dynaCuts = [],
|
|
169
|
-
|
|
172
|
+
color = Cesium.Color.fromAlpha(color, vm.opacity);
|
|
173
|
+
let dynaCuts = [],
|
|
174
|
+
planes = [];
|
|
175
|
+
for (let i = 0; i < m3d.length; i++) {
|
|
170
176
|
//创建剖切对象实例
|
|
171
|
-
let plane = new Cesium.ClippingPlane(
|
|
177
|
+
let plane = new Cesium.ClippingPlane(
|
|
178
|
+
new Cesium.Cartesian3(xDirect, yDirect, zDirect),
|
|
179
|
+
0.0
|
|
180
|
+
);
|
|
172
181
|
let dynaCut;
|
|
173
182
|
planes.push(plane);
|
|
174
|
-
if(i === 0){
|
|
175
|
-
dynaCut = analysisManager.createDynamicCutting(
|
|
176
|
-
|
|
177
|
-
|
|
178
|
-
|
|
183
|
+
if (i === 0) {
|
|
184
|
+
dynaCut = analysisManager.createDynamicCutting(
|
|
185
|
+
[m3d[i].source[0]],
|
|
186
|
+
[planes[i]],
|
|
187
|
+
{
|
|
188
|
+
color: color
|
|
189
|
+
}
|
|
190
|
+
);
|
|
191
|
+
} else {
|
|
179
192
|
let color = Cesium.Color.fromCssColorString("#ffffff");
|
|
180
|
-
color = Cesium.Color.fromAlpha(color,0);
|
|
181
|
-
dynaCut = analysisManager.createDynamicCutting(
|
|
182
|
-
|
|
183
|
-
|
|
193
|
+
color = Cesium.Color.fromAlpha(color, 0);
|
|
194
|
+
dynaCut = analysisManager.createDynamicCutting(
|
|
195
|
+
[m3d[i].source[0]],
|
|
196
|
+
[planes[i]],
|
|
197
|
+
{
|
|
198
|
+
color: color
|
|
199
|
+
}
|
|
200
|
+
);
|
|
184
201
|
}
|
|
185
202
|
dynaCuts.push(dynaCut);
|
|
186
203
|
//设置切面回调函数
|
|
187
|
-
dynaCuts[i].planes[0].plane.plane = new Cesium.CallbackProperty(
|
|
188
|
-
|
|
189
|
-
|
|
190
|
-
|
|
191
|
-
|
|
192
|
-
|
|
193
|
-
|
|
194
|
-
|
|
195
|
-
|
|
204
|
+
dynaCuts[i].planes[0].plane.plane = new Cesium.CallbackProperty(
|
|
205
|
+
function(date) {
|
|
206
|
+
if (
|
|
207
|
+
vm.direction === "left" ||
|
|
208
|
+
vm.direction === "back" ||
|
|
209
|
+
vm.direction === "top"
|
|
210
|
+
) {
|
|
211
|
+
planes[i].distance =
|
|
212
|
+
vm.endDistanceCopy - vm.currentDistanceCopy;
|
|
213
|
+
} else {
|
|
214
|
+
planes[i].distance = -vm.currentDistanceCopy;
|
|
215
|
+
}
|
|
216
|
+
vm.initSlider = true;
|
|
217
|
+
return Cesium.Plane.transform(
|
|
218
|
+
plane,
|
|
219
|
+
m3d[m3dIndex].source[0].modelMatrix,
|
|
220
|
+
new Cesium.ClippingPlane(Cesium.Cartesian3.UNIT_X, 0.0)
|
|
221
|
+
);
|
|
222
|
+
},
|
|
223
|
+
false
|
|
224
|
+
);
|
|
196
225
|
}
|
|
197
|
-
CesiumZondy.DynamicCuttingManager.addSource(
|
|
198
|
-
|
|
226
|
+
CesiumZondy.DynamicCuttingManager.addSource(
|
|
227
|
+
vueKey,
|
|
228
|
+
vueIndex instanceof Array ? vueIndex[0] : vueIndex,
|
|
229
|
+
dynaCuts
|
|
230
|
+
);
|
|
231
|
+
});
|
|
199
232
|
});
|
|
200
233
|
},
|
|
201
|
-
$_unmount(){
|
|
202
|
-
const {vueKey,vueIndex} = this;
|
|
234
|
+
$_unmount() {
|
|
235
|
+
const { vueKey, vueIndex } = this;
|
|
203
236
|
let index = vueIndex instanceof Array ? vueIndex[0] : vueIndex;
|
|
204
|
-
let dynaCuts = CesiumZondy.DynamicCuttingManager.findSource(vueKey,index)
|
|
205
|
-
|
|
206
|
-
|
|
207
|
-
|
|
237
|
+
let dynaCuts = CesiumZondy.DynamicCuttingManager.findSource(vueKey, index)
|
|
238
|
+
.source;
|
|
239
|
+
let analysisManager = CesiumZondy.AnalysisManager.findSource(
|
|
240
|
+
vueKey,
|
|
241
|
+
index
|
|
242
|
+
).source;
|
|
243
|
+
for (let i = 0; i < dynaCuts.length; i++) {
|
|
244
|
+
if (dynaCuts[i].hasOwnProperty("handler") && dynaCuts[i].handler) {
|
|
245
|
+
analysisManager.deleteDynamicCutting(dynaCuts[i]);
|
|
246
|
+
}
|
|
208
247
|
}
|
|
209
|
-
CesiumZondy.DynamicCuttingManager.deleteSource(vueKey,index);
|
|
210
|
-
CesiumZondy.AnalysisManager.deleteSource(vueKey,index);
|
|
248
|
+
CesiumZondy.DynamicCuttingManager.deleteSource(vueKey, index);
|
|
249
|
+
CesiumZondy.AnalysisManager.deleteSource(vueKey, index);
|
|
211
250
|
}
|
|
212
251
|
}
|
|
213
|
-
}
|
|
252
|
+
};
|
|
214
253
|
</script>
|
|
215
254
|
|
|
216
255
|
<style scoped>
|
|
217
|
-
.dynamic-tool-bar{
|
|
256
|
+
.dynamic-tool-bar {
|
|
218
257
|
position: absolute;
|
|
219
258
|
top: 10px;
|
|
220
259
|
left: 10px;
|
|
221
260
|
width: 400px;
|
|
222
261
|
}
|
|
223
|
-
.dynamic-tool-bar .flood-title{
|
|
262
|
+
.dynamic-tool-bar .flood-title {
|
|
224
263
|
margin-top: 0.7em;
|
|
225
264
|
}
|
|
226
|
-
</style>
|
|
265
|
+
</style>
|