|
@@ -60,7 +60,8 @@ export default {
|
|
|
computed: {},
|
|
|
mounted() {
|
|
|
this.$nextTick(() => {
|
|
|
- initroller();
|
|
|
+ // initroller();
|
|
|
+ // this.splitScreen = true;
|
|
|
});
|
|
|
},
|
|
|
methods: {
|
|
@@ -72,7 +73,7 @@ export default {
|
|
|
this.$emit("updateParent", "isShowTb", false);
|
|
|
this.$emit("updateParent", "emitImgIndex", -1);
|
|
|
},
|
|
|
- onClick(show) {
|
|
|
+ onClickjl(show) {
|
|
|
if (show) {
|
|
|
let jl = {
|
|
|
zzq: "http://192.168.60.2:8090/iserver/services/map-ShiDianQuYuTuDiXianZhuang/rest/maps/zzq",
|
|
@@ -98,6 +99,22 @@ export default {
|
|
|
this.setImager({ year: "hou" }, false);
|
|
|
}
|
|
|
},
|
|
|
+ onClick(show) {
|
|
|
+ console.log("a-aa--", show);
|
|
|
+ let mul = show ? "HORIZONTAL" : "NONE";
|
|
|
+ scene.multiViewportMode = Cesium.MultiViewportMode[mul];
|
|
|
+ let jl = {
|
|
|
+ zzh: "http://192.168.60.2:8090/iserver/services/map-ShiDianQuYuTuDiXianZhuang/rest/maps/zzh",
|
|
|
+ zzq: "http://192.168.60.2:8090/iserver/services/map-ShiDianQuYuTuDiXianZhuang/rest/maps/zzq",
|
|
|
+ };
|
|
|
+ this.setImager({ url: jl.zzq, year: "qian" }, true, (layer) => {
|
|
|
+ layer.setVisibleInViewport(1, false);
|
|
|
+ });
|
|
|
+ this.setImager({ url: jl.zzq, year: "qian" }, true, (layer) => {
|
|
|
+ layer.setVisibleInViewport(0, false);
|
|
|
+ });
|
|
|
+
|
|
|
+ },
|
|
|
setImager(obj, isshow = true, fun) {
|
|
|
if (this.imagelayers[obj.year]) this.imagelayers[obj.year].show = isshow;
|
|
|
else if (isshow)
|