|
|
|
@ -6,40 +6,53 @@
|
|
|
|
|
:extra-options="{ vectorMapForeign: 'style_zh_cn' }" class="amap-demo">
|
|
|
|
|
<el-amap-geojson :geo="changshazhen" :polygon-options="polygonOptions" :draggable="draggable"
|
|
|
|
|
@click="JSONclick" />
|
|
|
|
|
<!-- <el-amap-geojson :geo="roadline1" :polygon-options="polygonOptions" :draggable="draggable"
|
|
|
|
|
@click="JSONclick2" />
|
|
|
|
|
|
|
|
|
|
<el-amap-geojson :geo="roadline2" :polygon-options="polygonOptions" :draggable="draggable"
|
|
|
|
|
@click="JSONclick3" /> -->
|
|
|
|
|
<!-- <el-amap-geojson :geo="roadpoint" :polygon-options="polygonOptions" :draggable="draggable" @click="JSONclick" />
|
|
|
|
|
<el-amap-geojson :geo="roadpoint2" :polygon-options="polygonOptions" :draggable="draggable"
|
|
|
|
|
@click="JSONclick" /> -->
|
|
|
|
|
|
|
|
|
|
<!-- 重点人员 -->
|
|
|
|
|
<el-amap-marker v-for="(marker, index) in markers" :title="marker.name" :key="marker.id"
|
|
|
|
|
:position="marker.position" @click="(e) => { clickArrayMarker(marker, e) }" v-if="radio == 2 || radio == 1">
|
|
|
|
|
:position="marker.position" @click="(e) => { clickArrayMarker(marker, e) }" v-if="actionMap.includes(2)">
|
|
|
|
|
<div class="markerStyles">
|
|
|
|
|
<div v-if="marker.name" class="marker-Text">{{ marker.name }}</div>
|
|
|
|
|
<img :src="marker.imgSrc" alt="">
|
|
|
|
|
<el-amap-polyline :editable="false" :visible="true" :draggable="false" :path="marker.pathlist" strokeColor="greenyellow" :zIndex="500"
|
|
|
|
|
:strokeDasharray="[10,10]" strokeStyle="dashed" :strokeWeight="4"/>
|
|
|
|
|
<el-amap-polyline :editable="false" :visible="true" :draggable="false" :path="marker.pathlist"
|
|
|
|
|
strokeColor="greenyellow" :zIndex="500" :strokeDasharray="[10, 10]" strokeStyle="dashed"
|
|
|
|
|
:strokeWeight="4" />
|
|
|
|
|
</div>
|
|
|
|
|
</el-amap-marker>
|
|
|
|
|
|
|
|
|
|
<!-- <el-amap-marker v-for="(marker, index) in markers2" :title="marker.name" :key="marker.id + 5"
|
|
|
|
|
:position="marker.position" @click="(e) => { clickArrayMarker(marker, e) }" v-if="radio == 3 || radio == 1">
|
|
|
|
|
<!-- 外来人员 -->
|
|
|
|
|
<el-amap-marker v-for="(marker, index) in markers2" :title="marker.name" :key="marker.id + '5'"
|
|
|
|
|
:position="marker.position" @click="(e) => { clickArrayMarker(marker, e) }" v-if="actionMap.includes(3)">
|
|
|
|
|
<div class="markerStyles">
|
|
|
|
|
<div v-if="marker.name" class="marker-Text">{{ marker.name }}</div>
|
|
|
|
|
<img :src="marker.imgSrc" alt="">
|
|
|
|
|
<el-amap-polyline :editable="false" :visible="true" :draggable="false" :path="marker.pathlist"
|
|
|
|
|
strokeColor="red" :zIndex="500" :strokeDasharray="[10, 10]" strokeStyle="dashed" :strokeWeight="4" />
|
|
|
|
|
</div>
|
|
|
|
|
</el-amap-marker>
|
|
|
|
|
<!-- 本地人口 -->
|
|
|
|
|
<el-amap-marker v-for="(marker, index) in markers3" :title="marker.name" :key="marker.id + '6'"
|
|
|
|
|
:position="marker.position" @click="(e) => { clickArrayMarker(marker, e) }" v-if="actionMap.includes(1)">
|
|
|
|
|
<div class="markerStyles">
|
|
|
|
|
<div v-if="marker.name" class="marker-Text">{{ marker.name }}</div>
|
|
|
|
|
<img :src="marker.imgSrc" alt="">
|
|
|
|
|
<el-amap-polyline :editable="false" :visible="true" :draggable="false" :path="marker.pathlist"
|
|
|
|
|
strokeColor="#ffffff" :zIndex="500" :strokeDasharray="[10, 10]" strokeStyle="dashed" :strokeWeight="4" />
|
|
|
|
|
</div>
|
|
|
|
|
</el-amap-marker>
|
|
|
|
|
<!-- 车辆信息 -->
|
|
|
|
|
<el-amap-marker v-for="(marker, index) in markers4" :title="marker.name" :key="marker.id + '7'"
|
|
|
|
|
:position="marker.position" @click="(e) => { clickArrayMarker(marker, e) }" v-if="actionMap.includes(4)">
|
|
|
|
|
<div class="markerStyles">
|
|
|
|
|
<div v-if="marker.name" class="marker-Text">{{ marker.name }}</div>
|
|
|
|
|
<img :src="marker.imgSrc" alt="">
|
|
|
|
|
<el-amap-polyline :editable="false" :visible="true" :draggable="false" :path="marker.pathlist" strokeColor="red" :zIndex="500"
|
|
|
|
|
:strokeDasharray="[10,10]" strokeStyle="dashed"
|
|
|
|
|
:strokeWeight="4"
|
|
|
|
|
/>
|
|
|
|
|
<el-amap-polyline :editable="false" :visible="true" :draggable="false" :path="marker.pathlist"
|
|
|
|
|
strokeColor="#ffffff" :zIndex="500" :strokeDasharray="[10, 10]" strokeStyle="dashed" :strokeWeight="4" />
|
|
|
|
|
</div>
|
|
|
|
|
</el-amap-marker> -->
|
|
|
|
|
</el-amap-marker>
|
|
|
|
|
</el-amap>
|
|
|
|
|
</div>
|
|
|
|
|
<!-- 图层展示 -->
|
|
|
|
|
<div>
|
|
|
|
|
<ZhanshiTubiao showType="重点人员" @markersradio="markersradio"></ZhanshiTubiao>
|
|
|
|
|
<ZhanshiTubiao showType="重点人员" @markersactionMap="markersactionMap"></ZhanshiTubiao>
|
|
|
|
|
</div>
|
|
|
|
|
<leftrightEcahts></leftrightEcahts>
|
|
|
|
|
<righttEcahts></righttEcahts>
|
|
|
|
@ -102,7 +115,7 @@ export default {
|
|
|
|
|
name: "张三",
|
|
|
|
|
content: '<i class="el-icon-user-solid bendiren"></i>',
|
|
|
|
|
imgSrc: require("@/assets/images/icon/zhongdianren2.png"),
|
|
|
|
|
pathlist: [[121.183697866903292, 32.460227941215508],[121.173697866903292, 32.430227941215508],]
|
|
|
|
|
pathlist: [[121.183697866903292, 32.460227941215508], [121.173697866903292, 32.430227941215508],]
|
|
|
|
|
},
|
|
|
|
|
{
|
|
|
|
|
position: [121.235712627230569, 32.447218823220901],
|
|
|
|
@ -110,16 +123,16 @@ export default {
|
|
|
|
|
name: "李四",
|
|
|
|
|
content: '<i class="el-icon-user-solid bendiren"></i>',
|
|
|
|
|
imgSrc: require("@/assets/images/icon/zhongdianren2.png"),
|
|
|
|
|
pathlist: [[121.235712627230569, 32.447218823220901],[ 121.245712627230569, 32.427218823220901 ],]
|
|
|
|
|
pathlist: [[121.235712627230569, 32.447218823220901], [121.245712627230569, 32.427218823220901],]
|
|
|
|
|
},
|
|
|
|
|
{
|
|
|
|
|
position: [121.318413448767714, 32.411908360092688],
|
|
|
|
|
position: [121.318413448767714, 32.4211908360092688],
|
|
|
|
|
id: 3,
|
|
|
|
|
name: "王五",
|
|
|
|
|
content: '<i class="el-icon-user-solid bendiren"></i>',
|
|
|
|
|
imgSrc: require("@/assets/images/icon/zhongdianren2.png")
|
|
|
|
|
,
|
|
|
|
|
pathlist: [[121.318413448767714, 32.411908360092688],[ 121.328413448767714, 32.421908360092688],]
|
|
|
|
|
pathlist: [[121.318413448767714, 32.4211908360092688], [121.328413448767714, 32.421908360092688],]
|
|
|
|
|
},
|
|
|
|
|
{
|
|
|
|
|
position: [121.359751265879749, 32.38683020264299],
|
|
|
|
@ -128,46 +141,84 @@ export default {
|
|
|
|
|
content: '<i class="el-icon-user-solid bendiren"></i>',
|
|
|
|
|
imgSrc: require("@/assets/images/icon/zhongdianren2.png")
|
|
|
|
|
,
|
|
|
|
|
pathlist: [[121.359751265879749, 32.38683020264299],[ 121.349751265879749, 32.36683020264299],]
|
|
|
|
|
pathlist: [[121.359751265879749, 32.38683020264299], [121.349751265879749, 32.36683020264299],]
|
|
|
|
|
},
|
|
|
|
|
],
|
|
|
|
|
markers2: [
|
|
|
|
|
{
|
|
|
|
|
position: [121.24012643512161, 32.392859294457729],
|
|
|
|
|
id: 1,
|
|
|
|
|
name: "外地人口",
|
|
|
|
|
name: "外张三",
|
|
|
|
|
content: '<i class="el-icon-user-solid waidi"></i>',
|
|
|
|
|
imgSrc: require("@/assets/images/icon/zhongdianren.png"),
|
|
|
|
|
pathlist: [[121.227349622803477, 32.389607014959076],[121.24012643512161, 32.392859294457729],]
|
|
|
|
|
pathlist: [[121.227349622803477, 32.389607014959076], [121.24012643512161, 32.392859294457729],]
|
|
|
|
|
},
|
|
|
|
|
{
|
|
|
|
|
position: [121.316090391982954, 32.406100718130809 ],
|
|
|
|
|
position: [121.316090391982954, 32.406100718130809],
|
|
|
|
|
id: 2,
|
|
|
|
|
name: "外地人口",
|
|
|
|
|
name: "外李四",
|
|
|
|
|
content: '<i class="el-icon-user-solid waidi"></i>',
|
|
|
|
|
imgSrc: require("@/assets/images/icon/zhongdianren.png"),
|
|
|
|
|
pathlist: [[121.252903247437729, 32.397970019384182],[ 121.316090391982954, 32.406100718130809 ],]
|
|
|
|
|
pathlist: [[121.252903247437729, 32.397970019384182], [121.316090391982954, 32.406100718130809],]
|
|
|
|
|
},
|
|
|
|
|
{
|
|
|
|
|
position: [121.295647492277155, 32.404939189738435],
|
|
|
|
|
position: [121.295647492277155, 32.3904939189738435],
|
|
|
|
|
id: 3,
|
|
|
|
|
name: "外地人口",
|
|
|
|
|
name: "外王五",
|
|
|
|
|
content: '<i class="el-icon-user-solid waidi"></i>',
|
|
|
|
|
imgSrc: require("@/assets/images/icon/zhongdianren.png"),
|
|
|
|
|
pathlist: [[121.295647492277155, 32.404939189738435],[ 121.316090391982954, 32.426100718130809 ],]
|
|
|
|
|
pathlist: [[121.295647492277155, 32.3904939189738435], [121.316090391982954, 32.426100718130809],]
|
|
|
|
|
},
|
|
|
|
|
{
|
|
|
|
|
position: [121.3418763222937, 32.418412919089988],
|
|
|
|
|
id: 4,
|
|
|
|
|
name: "外地人口",
|
|
|
|
|
name: "外赵六",
|
|
|
|
|
content: '<i class="el-icon-user-solid waidi"></i>',
|
|
|
|
|
imgSrc: require("@/assets/images/icon/zhongdianren.png")
|
|
|
|
|
,
|
|
|
|
|
pathlist: [[121.3418763222937, 32.418412919089988],[ 121.326090391982954, 32.406100718130809 ],]
|
|
|
|
|
pathlist: [[121.3418763222937, 32.418412919089988], [121.326090391982954, 32.406100718130809],]
|
|
|
|
|
},
|
|
|
|
|
],
|
|
|
|
|
markers3: [
|
|
|
|
|
{
|
|
|
|
|
position: [121.2209993697866903292, 32.460227941215508],
|
|
|
|
|
id: 1,
|
|
|
|
|
name: "本张三",
|
|
|
|
|
content: '<i class="el-icon-user-solid bendiren"></i>',
|
|
|
|
|
imgSrc: require("@/assets/images/icon/renkouzonghui.png"),
|
|
|
|
|
pathlist: [[121.2309993697866, 32.460227941215508], [121.19396937866903292, 32.430227941215508],]
|
|
|
|
|
},
|
|
|
|
|
{
|
|
|
|
|
position: [121.255712627230569, 32.427218823220901],
|
|
|
|
|
id: 2,
|
|
|
|
|
name: "本李四",
|
|
|
|
|
content: '<i class="el-icon-user-solid bendiren"></i>',
|
|
|
|
|
imgSrc: require("@/assets/images/icon/renkouzonghui.png"),
|
|
|
|
|
pathlist: [[121.255712627230569, 32.427218823220901], [121.245712627230569, 32.437218823220901],]
|
|
|
|
|
},
|
|
|
|
|
|
|
|
|
|
],
|
|
|
|
|
markers4: [
|
|
|
|
|
{
|
|
|
|
|
position: [121.23209993697866903292, 32.4360227941215508],
|
|
|
|
|
id: 1,
|
|
|
|
|
name: "重点车辆",
|
|
|
|
|
content: '<i class="el-icon-user-solid bendiren"></i>',
|
|
|
|
|
imgSrc: require("@/assets/images/icon/genduofuwu.png"),
|
|
|
|
|
pathlist: [[121.23209993697866903292, 32.4360227941215508], [121.19396937866903292, 32.430227941215508],]
|
|
|
|
|
},
|
|
|
|
|
{
|
|
|
|
|
position: [121.2355712627230569, 32.47327218823220901],
|
|
|
|
|
id: 2,
|
|
|
|
|
name: "重点车辆",
|
|
|
|
|
content: '<i class="el-icon-user-solid bendiren"></i>',
|
|
|
|
|
imgSrc: require("@/assets/images/icon/genduofuwu.png"),
|
|
|
|
|
pathlist: [[121.2355712627230569, 32.48327218823220901], [121.245712627230569, 32.437218823220901],]
|
|
|
|
|
},
|
|
|
|
|
|
|
|
|
|
],
|
|
|
|
|
// 选项
|
|
|
|
|
radio: 1
|
|
|
|
|
actionMap: [1]
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
}
|
|
|
|
@ -206,14 +257,20 @@ export default {
|
|
|
|
|
//mark点
|
|
|
|
|
clickArrayMarker(e) {
|
|
|
|
|
console.log(e);
|
|
|
|
|
if (e.name == '重点车辆') {
|
|
|
|
|
this.$refs.Mapdialog.open("121")
|
|
|
|
|
|
|
|
|
|
} else {
|
|
|
|
|
this.$refs.Mapdialog.open("person")
|
|
|
|
|
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
},
|
|
|
|
|
// 切换人员
|
|
|
|
|
markersradio(type) {
|
|
|
|
|
markersactionMap(type) {
|
|
|
|
|
console.log(type);
|
|
|
|
|
|
|
|
|
|
this.radio = type
|
|
|
|
|
this.actionMap = type
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
},
|
|
|
|
|