|
@@ -1,6 +1,7 @@
|
|
|
<template>
|
|
|
<div id="supermap3D" style="width: 100%; height: 100%;background: none;overflow-y: auto;">
|
|
|
<div id="cesiumContainer" style="width: 100%; height: 100%;background: none;">
|
|
|
+ </div>
|
|
|
<!--地图top 显示 开始-->
|
|
|
<transition name='fade'>
|
|
|
<div class="map-tit" v-show="mapshow">
|
|
@@ -10,7 +11,9 @@
|
|
|
</div>
|
|
|
<div class="map-txt" v-html="bindPopupHtml">
|
|
|
</div>
|
|
|
- <div id="super2" />
|
|
|
+ <el-button size="mini" type="primary" class="sj-icon-btn" @click="openTvwall()">
|
|
|
+ 查看
|
|
|
+ </el-button>
|
|
|
</div>
|
|
|
</transition>
|
|
|
<!--地图top 显示 结束-->
|
|
@@ -31,6 +34,9 @@
|
|
|
name: 'supermap-2.5d',
|
|
|
data() {
|
|
|
return {
|
|
|
+ _click:null,
|
|
|
+ openZt: false,
|
|
|
+ _parameter:null,
|
|
|
bindPopupHtml: null,
|
|
|
mapshow: false,
|
|
|
superMapRootUrl: null,
|
|
@@ -826,7 +832,13 @@
|
|
|
});
|
|
|
},
|
|
|
openTvwall(){
|
|
|
- this.$emit('fatherMethod', this.dianshiqiang, this.longitude, this.latitude, this.userList);
|
|
|
+ this.mapshow=false;
|
|
|
+ if(this.openZt){
|
|
|
+ this.$emit('fatherMethod', this.dianshiqiang, this.longitude, this.latitude, this.userList);
|
|
|
+ }else{
|
|
|
+ this.$emit(this._click,this._parameter);
|
|
|
+ }
|
|
|
+
|
|
|
},
|
|
|
/**
|
|
|
* 地图落点
|
|
@@ -876,6 +888,9 @@
|
|
|
if (html != undefined && html._value != null && html._value != '' && html != 'cgq') {
|
|
|
that.bindPopupHtml = html
|
|
|
that.mapshow = true
|
|
|
+ that.openZt=false
|
|
|
+ that._click = id._click;
|
|
|
+ that._parameter = id._parameter;
|
|
|
} else if (html == 'cgq') {
|
|
|
that.timer = setInterval(function() {
|
|
|
var color = "green";
|
|
@@ -1028,4 +1043,13 @@
|
|
|
opacity: 0;
|
|
|
transform: translateY(-10rem);
|
|
|
}
|
|
|
+ .map-tit{
|
|
|
+ .sj-icon-btn{
|
|
|
+ display: block;
|
|
|
+ margin: 10px auto 15px auto;
|
|
|
+ padding: 0px 16px;
|
|
|
+ font-size: 10px;
|
|
|
+ height: 1.7rem;
|
|
|
+ }
|
|
|
+ }
|
|
|
</style>
|