|
@@ -192,7 +192,7 @@ export default {
|
|
|
let height = cartographic.height;
|
|
|
let heading = viewer.scene.camera.heading;
|
|
|
let pitch = viewer.scene.camera.pitch;
|
|
|
- // that.addSceneFun()
|
|
|
+ that.addSceneFun()
|
|
|
// console.log(longitude, latitude, height);
|
|
|
|
|
|
// if (!pickObj)//未获取实体
|
|
@@ -225,12 +225,12 @@ export default {
|
|
|
|
|
|
if (res.properties.name._value != name) {
|
|
|
res.polygon._material.color = Cesium.Color.fromCssColorString(that.xzqh_color)
|
|
|
- res.polygon.extrudedHeight = 450;
|
|
|
+ // res.polygon.extrudedHeight = 450;
|
|
|
|
|
|
// 选中状态
|
|
|
} else {
|
|
|
res.polygon._material.color = Cesium.Color.fromCssColorString(that.xzqh_color_click)
|
|
|
- res.polygon.extrudedHeight = 850;
|
|
|
+ // res.polygon.extrudedHeight = 850;
|
|
|
}
|
|
|
})
|
|
|
that.params.id = address
|
|
@@ -259,7 +259,7 @@ export default {
|
|
|
// console.log(res.properties.name._value, "其他的");
|
|
|
// console.log(res);
|
|
|
res.polygon._material.color = Cesium.Color.fromCssColorString(that.xzqh_color)
|
|
|
- res.polygon.extrudedHeight = 450;
|
|
|
+ // res.polygon.extrudedHeight = 450;
|
|
|
|
|
|
})
|
|
|
// 海域使用
|
|
@@ -297,10 +297,9 @@ export default {
|
|
|
|
|
|
const twoDArray = item[0];
|
|
|
const oneDArray = twoDArray.reduce((accumulator, currentValue) => accumulator.concat(currentValue), []);
|
|
|
- console.log(item, "item");
|
|
|
|
|
|
viewer.entities.add({
|
|
|
- position: Cesium.Cartesian3.fromDegrees(obj.centroid[0], res.properties.centroid[1], 500),
|
|
|
+ position: Cesium.Cartesian3.fromDegrees(obj.centroid[0], res.properties.centroid[1], 5000),
|
|
|
text: obj.name,
|
|
|
label: {
|
|
|
scale: 1.5,
|
|
@@ -338,7 +337,7 @@ export default {
|
|
|
// outline: false,
|
|
|
material: Cesium.Color.fromCssColorString(that.xzqh_color),
|
|
|
height: 100,
|
|
|
- extrudedHeight: 450,
|
|
|
+ extrudedHeight: res.properties.extrudedHeight,
|
|
|
outline: true,
|
|
|
// outlineColor : Cesium.Color.BLACK
|
|
|
outlineColor: Cesium.Color.fromCssColorString('#55A1E3'),
|