|
@@ -146,6 +146,7 @@ export default {
|
|
|
clickPoint() {
|
|
|
pickPoint(true, (lon, lat, height) => {
|
|
|
this.form.height = height.toFixed(2);
|
|
|
+ this.form.buffer = "";
|
|
|
});
|
|
|
},
|
|
|
reset() {
|
|
@@ -241,9 +242,10 @@ export default {
|
|
|
// let fn = (data) => { data.name = "cut_fill" };
|
|
|
viewer.entities.removeAll();
|
|
|
viewer.dataSources.removeAll();
|
|
|
- loadGeoJSON(this.form.geom, "#E1CFAD", {}, (data) => {
|
|
|
+ loadGeoJSON(res.data.bottomGeomBuffer, "#916E54", {}, (data) => {
|
|
|
data.entities.values.forEach((entity, ei) => {
|
|
|
if (entity.polygon) {
|
|
|
+ // entity.polygon.perPositionHeight = true;
|
|
|
entity.polygon.material = new Cesium.ImageMaterialProperty({
|
|
|
image: "./static/images/map/texture.png",
|
|
|
transparent: true,
|
|
@@ -253,9 +255,11 @@ export default {
|
|
|
});
|
|
|
loadGeoJSON(res.data.bottomGeom, "#1E90A8", params, (data) => {
|
|
|
dataSource.bottom = data;
|
|
|
+ dataSource.bottom.show = this.checked;
|
|
|
});
|
|
|
loadGeoJSON(res.data.midGeom, "#ff0000", params, (data) => {
|
|
|
dataSource.mid = data;
|
|
|
+ dataSource.mid.show = this.checked;
|
|
|
});
|
|
|
let threeArray = this.geojsonToFlatArray(parse(this.form.geom));
|
|
|
// this.cutana(threeArray);
|