|
@@ -126,7 +126,6 @@ export default {
|
|
this.flag = !this.flag;
|
|
this.flag = !this.flag;
|
|
},
|
|
},
|
|
setDatas() {
|
|
setDatas() {
|
|
- console.log(111);
|
|
|
|
|
|
|
|
// 耕地保护
|
|
// 耕地保护
|
|
this.$refs.gdbh_ref.init_zbph(this.params);
|
|
this.$refs.gdbh_ref.init_zbph(this.params);
|
|
@@ -228,16 +227,15 @@ export default {
|
|
let height = cartographic.height;
|
|
let height = cartographic.height;
|
|
let heading = viewer.scene.camera.heading;
|
|
let heading = viewer.scene.camera.heading;
|
|
let pitch = viewer.scene.camera.pitch;
|
|
let pitch = viewer.scene.camera.pitch;
|
|
- // that.addSceneFun()
|
|
|
|
|
|
|
|
if (!position) {
|
|
if (!position) {
|
|
position = Cesium.Cartesian3.fromDegrees(0, 0, 0);
|
|
position = Cesium.Cartesian3.fromDegrees(0, 0, 0);
|
|
return;
|
|
return;
|
|
}
|
|
}
|
|
- if (store.state.xzqh_flag) {
|
|
|
|
|
|
+
|
|
|
|
+ if (store.state.viewer_flag) {
|
|
if (Cesium.defined(pickObj)) {
|
|
if (Cesium.defined(pickObj)) {
|
|
- console.log(store.state.xzqh_flag, "store.state.xzqh_flag");
|
|
|
|
- if (pickObj.primitive instanceof Cesium.Primitive && store.state.xzqh_flag == true) {//点击primitive
|
|
|
|
|
|
+ if (pickObj.primitive instanceof Cesium.Primitive) {//点击primitive
|
|
//primitive相关操作
|
|
//primitive相关操作
|
|
|
|
|
|
let obj = JSON.parse(pickObj.id);
|
|
let obj = JSON.parse(pickObj.id);
|