|
|
|
@ -19,38 +19,76 @@
|
|
|
|
|
一号无人机
|
|
|
|
|
</div>
|
|
|
|
|
<div class="Echarts" ref="EchartsTop">
|
|
|
|
|
<el-steps :active="1" >
|
|
|
|
|
<!-- <el-steps :active="1">
|
|
|
|
|
<el-step v-for="(step, index) in steps" :key="index" :icon="step.icon">
|
|
|
|
|
<template #icon>
|
|
|
|
|
<img :src="step.image" alt="步骤图标" class="custom-icon" />
|
|
|
|
|
</template>
|
|
|
|
|
</el-step>
|
|
|
|
|
</el-steps>
|
|
|
|
|
</el-step>
|
|
|
|
|
</el-steps> -->
|
|
|
|
|
<el-amap ref="map" map-style="amap://styles/d02b66b0a7f190d5a1556a3f59c86518" :center="myxiuanlu.features[0].geometry.coordinates[0][0]" :zoom="zoom"
|
|
|
|
|
:zooms="zooms" element-loading-background="rgba(11, 34, 72, 0.8)" @init="init"
|
|
|
|
|
:extra-options="{ vectorMapForeign: 'style_zh_cn' }" class="amap-demo">
|
|
|
|
|
|
|
|
|
|
<el-amap-geojson :geo="changshazhen" :polygon-options="polygonOptions" :draggable="draggable"
|
|
|
|
|
@click="JSONclick" />
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
<el-amap-polyline :editable="false" :visible="true" :draggable="false"
|
|
|
|
|
:path="myxiuanlu.features[0].geometry.coordinates[0]" :zIndex="500" strokeColor="red" isOutline
|
|
|
|
|
lineCap="round" @click="(e) => { polylineclick(e, '线1') }" :strokeWeight="4" geodesic />
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
</el-amap>
|
|
|
|
|
</div>
|
|
|
|
|
<div class="rightleft-title">
|
|
|
|
|
二号无人机
|
|
|
|
|
</div>
|
|
|
|
|
<div class="Echarts" ref="EchartsTopTow">
|
|
|
|
|
<el-steps :active="2" >
|
|
|
|
|
<!-- <el-steps :active="2">
|
|
|
|
|
<el-step v-for="(step, index) in steps" :key="index" :icon="step.icon">
|
|
|
|
|
<template #icon>
|
|
|
|
|
<img :src="step.image" alt="步骤图标" class="custom-icon" />
|
|
|
|
|
</template>
|
|
|
|
|
</el-step>
|
|
|
|
|
</el-steps>
|
|
|
|
|
</el-steps> -->
|
|
|
|
|
<el-amap ref="map" map-style="amap://styles/d02b66b0a7f190d5a1556a3f59c86518" :center="roadline2.features[0].geometry.coordinates[0][0]" :zoom="zoom"
|
|
|
|
|
:zooms="zooms" element-loading-background="rgba(11, 34, 72, 0.8)" @init="init"
|
|
|
|
|
:extra-options="{ vectorMapForeign: 'style_zh_cn' }" class="amap-demo">
|
|
|
|
|
|
|
|
|
|
<el-amap-geojson :geo="changshazhen" :polygon-options="polygonOptions" :draggable="draggable"
|
|
|
|
|
@click="JSONclick" />
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
<el-amap-polyline :editable="false" :visible="true" :draggable="false"
|
|
|
|
|
:path="roadline2.features[0].geometry.coordinates[0]" :zIndex="500" strokeColor="red" isOutline
|
|
|
|
|
lineCap="round" @click="(e) => { polylineclick(e, '线1') }" :strokeWeight="4" geodesic />
|
|
|
|
|
|
|
|
|
|
</el-amap>
|
|
|
|
|
</div>
|
|
|
|
|
<div class="rightleft-title">
|
|
|
|
|
三号无人机
|
|
|
|
|
</div>
|
|
|
|
|
<div class="Echarts" ref="EchartsTopTow">
|
|
|
|
|
<el-steps :active="3" >
|
|
|
|
|
<!-- <el-steps :active="3">
|
|
|
|
|
<el-step v-for="(step, index) in steps" :key="index" :icon="step.icon">
|
|
|
|
|
<template #icon>
|
|
|
|
|
<img :src="step.image" alt="步骤图标" class="custom-icon" />
|
|
|
|
|
</template>
|
|
|
|
|
</el-step>
|
|
|
|
|
</el-steps>
|
|
|
|
|
</el-steps> -->
|
|
|
|
|
<el-amap ref="map" map-style="amap://styles/d02b66b0a7f190d5a1556a3f59c86518" :center="roadline.features[0].geometry.coordinates[0][0]" :zoom="zoom"
|
|
|
|
|
:zooms="zooms" element-loading-background="rgba(11, 34, 72, 0.8)" @init="init"
|
|
|
|
|
:extra-options="{ vectorMapForeign: 'style_zh_cn' }" class="amap-demo">
|
|
|
|
|
<el-amap-geojson :geo="changshazhen" :polygon-options="polygonOptions" :draggable="draggable"
|
|
|
|
|
@click="JSONclick" />
|
|
|
|
|
|
|
|
|
|
<el-amap-polyline :editable="false" :visible="true" :draggable="false"
|
|
|
|
|
:path="roadline.features[0].geometry.coordinates[0]" :zIndex="500" strokeColor="red" isOutline
|
|
|
|
|
lineCap="round" @click="(e) => { polylineclick(e, '线1') }" :strokeWeight="4" geodesic />
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
</el-amap>
|
|
|
|
|
</div>
|
|
|
|
|
</div>
|
|
|
|
|
</div>
|
|
|
|
@ -59,6 +97,11 @@
|
|
|
|
|
</template>
|
|
|
|
|
<script>
|
|
|
|
|
import titleBox from '@/views/components/title/index.vue'
|
|
|
|
|
import changshazhen from "@/assets/mapjson/Chaangshazhen/changshazhen.geojson"
|
|
|
|
|
import myxiuanlu from "@/assets/mapjson/Chaangshazhen/myxiuanlufeiji1.geojson"
|
|
|
|
|
import roadline from "@/assets/mapjson/Chaangshazhen/road-line.geojson"
|
|
|
|
|
import roadline2 from "@/assets/mapjson/Chaangshazhen/road-line2.geojson"
|
|
|
|
|
|
|
|
|
|
export default {
|
|
|
|
|
name: 'mapLeftContent',
|
|
|
|
|
components: { titleBox, },
|
|
|
|
@ -75,13 +118,50 @@ export default {
|
|
|
|
|
itemTwo: {
|
|
|
|
|
height: '',
|
|
|
|
|
},
|
|
|
|
|
changshazhen: changshazhen,
|
|
|
|
|
myxiuanlu: myxiuanlu,
|
|
|
|
|
roadline:roadline,
|
|
|
|
|
roadline2:roadline2,
|
|
|
|
|
|
|
|
|
|
polygonOptions: {
|
|
|
|
|
strokeColor: '#00C5EC',
|
|
|
|
|
fillColor: '#00AEFF'
|
|
|
|
|
},
|
|
|
|
|
zoom: 10,
|
|
|
|
|
zooms: [3, 20],
|
|
|
|
|
center: [121.298563, 32.451807],
|
|
|
|
|
map: null,
|
|
|
|
|
draggable: false,
|
|
|
|
|
visible: true,
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
}
|
|
|
|
|
},
|
|
|
|
|
|
|
|
|
|
methods: {
|
|
|
|
|
init(map) {
|
|
|
|
|
this.map = map;
|
|
|
|
|
// o.setMapStyle('amap://styles/darkblue')
|
|
|
|
|
map.setMapStyle("amap://styles/d02b66b0a7f190d5a1556a3f59c86518");
|
|
|
|
|
console.log(this.map.getCenter())
|
|
|
|
|
console.log(this.$refs.map.$$getInstance())
|
|
|
|
|
},
|
|
|
|
|
click() {
|
|
|
|
|
alert('click map')
|
|
|
|
|
},
|
|
|
|
|
// 面图层样式
|
|
|
|
|
JSONclick: (e) => {
|
|
|
|
|
console.log('click event: ', e);
|
|
|
|
|
},
|
|
|
|
|
polylineclick(e, type) {
|
|
|
|
|
if (type == "线1") {
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
}
|
|
|
|
|
if (type == "线2") {
|
|
|
|
|
}
|
|
|
|
|
},
|
|
|
|
|
next() {
|
|
|
|
|
if (this.active < this.steps.length - 1) {
|
|
|
|
|
this.active++;
|
|
|
|
@ -120,15 +200,18 @@ export default {
|
|
|
|
|
padding: 0 20px;
|
|
|
|
|
margin: 30px 0;
|
|
|
|
|
width: 100%;
|
|
|
|
|
height: 120px;
|
|
|
|
|
}
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
}
|
|
|
|
|
.custom-icon{
|
|
|
|
|
|
|
|
|
|
.custom-icon {
|
|
|
|
|
width: 30px;
|
|
|
|
|
}
|
|
|
|
|
::v-deep .el-step__icon.is-text{
|
|
|
|
|
|
|
|
|
|
::v-deep .el-step__icon.is-text {
|
|
|
|
|
background: transparent;
|
|
|
|
|
border: none;
|
|
|
|
|
}
|
|
|
|
|