大屏提供3D地图
This commit is contained in:
		| @@ -22,7 +22,7 @@ | |||||||
|                  :theme="theme" |                  :theme="theme" | ||||||
|                  :data="values" |                  :data="values" | ||||||
|                  :ops="chartList[data.config]"/> |                  :ops="chartList[data.config]"/> | ||||||
|       <ai-map v-else-if="data.type=='map'" :mask="data.mask === '1'" :areaId="data.areaId || user.info.areaId" |       <ai-map v-else-if="data.type=='map'" :mask="data.mask === '1'" :areaId="data.areaId || user.info.areaId" :is3d="data.is3d==1" | ||||||
|               :map-style="`amap://styles/${data.mapStyle}`" :pulseLines="data.pulseLines==1" :map.sync="map" :lib.sync="lib"/> |               :map-style="`amap://styles/${data.mapStyle}`" :pulseLines="data.pulseLines==1" :map.sync="map" :lib.sync="lib"/> | ||||||
|       <ai-monitor :src="data.src" v-else-if="data.type === 'monitor'" :type="data.monitorType"/> |       <ai-monitor :src="data.src" v-else-if="data.type === 'monitor'" :type="data.monitorType"/> | ||||||
|       <video style="width: 100%; height: 100%; object-fit: fill;" loop :src="data.src" autoplay v-else-if="data.type === 'video'"/> |       <video style="width: 100%; height: 100%; object-fit: fill;" loop :src="data.src" autoplay v-else-if="data.type === 'video'"/> | ||||||
| @@ -147,6 +147,7 @@ export default { | |||||||
|           }) |           }) | ||||||
|         }) |         }) | ||||||
|         map.setFitView(markers) |         map.setFitView(markers) | ||||||
|  |         this.data.is3d && map.setPitch(60) | ||||||
|       } else if (count < 10) { |       } else if (count < 10) { | ||||||
|         console.log("正在加载...%s", count) |         console.log("正在加载...%s", count) | ||||||
|         setTimeout(() => this.renderMap(++count), 1000) |         setTimeout(() => this.renderMap(++count), 1000) | ||||||
|   | |||||||
| @@ -113,6 +113,12 @@ | |||||||
|               <el-input size="mini" v-model="config.mapStyle" clearable placeholder="请输入地图样式ID,从UI处获取.."/> |               <el-input size="mini" v-model="config.mapStyle" clearable placeholder="请输入地图样式ID,从UI处获取.."/> | ||||||
|             </div> |             </div> | ||||||
|           </div> |           </div> | ||||||
|  |           <div class="layout-config__item layout-config__item--input"> | ||||||
|  |             <label>3D地图</label> | ||||||
|  |             <div class="layout-config__item--right"> | ||||||
|  |               <ai-select v-model="config.is3d" :selectList="dict.getDict('yesOrNo')"/> | ||||||
|  |             </div> | ||||||
|  |           </div> | ||||||
|         </template> |         </template> | ||||||
|         <div class="layout-config__item" v-if="config.type === 'summary'"> |         <div class="layout-config__item" v-if="config.type === 'summary'"> | ||||||
|           <label>数据汇总</label> |           <label>数据汇总</label> | ||||||
|   | |||||||
		Reference in New Issue
	
	Block a user