|
|
|
|
@ -1,6 +1,9 @@ |
|
|
|
|
<template> |
|
|
|
|
<div style="position:relative;width:100%;height:100%;"> |
|
|
|
|
<div id="container" style="width:100%;height:100%;"></div> |
|
|
|
|
<!-- <div class="mapsbtn" @click="backMap"> |
|
|
|
|
回到原点 |
|
|
|
|
</div> --> |
|
|
|
|
<!-- 信息弹框 --> |
|
|
|
|
<!-- <div v-if="infoShow" class="infoPop"> |
|
|
|
|
<div class="close_act" @click="infoShow = false" title="关闭">x</div> |
|
|
|
|
@ -112,7 +115,7 @@ export default { |
|
|
|
|
}, |
|
|
|
|
//回到原中心点 |
|
|
|
|
backMap() { |
|
|
|
|
var point = new BMapGL.Point(118.880278, 35.649947); |
|
|
|
|
var point = new BMapGL.Point(112.37558, 25.59342); |
|
|
|
|
this.infoShow = false; |
|
|
|
|
this.baiduMap.centerAndZoom(point, 12); |
|
|
|
|
if (this.polyline) { |
|
|
|
|
@ -698,4 +701,16 @@ export default { |
|
|
|
|
} |
|
|
|
|
} |
|
|
|
|
} |
|
|
|
|
.mapsbtn{ |
|
|
|
|
position: absolute; |
|
|
|
|
top: 10px; |
|
|
|
|
right: 20px; |
|
|
|
|
z-index: 999; |
|
|
|
|
width: 60px; |
|
|
|
|
height: 30px; |
|
|
|
|
line-height: 30px; |
|
|
|
|
text-align: center; |
|
|
|
|
background: red; |
|
|
|
|
cursor: pointer; |
|
|
|
|
} |
|
|
|
|
</style> |