|
@@ -64,7 +64,7 @@
|
|
|
<div class="jg_button">
|
|
|
|
|
|
<div v-for="(ico,index) in jgico" :key="ico.label" :label="ico.label">
|
|
|
- <img :src="ico.src" :title="ico.label" sel="0" @dblclick="onflclick($event,index)" style="width: 46px;height: 46px;margin-right: 5px;cursor:pointer">
|
|
|
+ <img :src="ico.src" :title="ico.label" sel="0" @click="onflclick($event,index)" style="width: 46px;height: 46px;margin-right: 5px;cursor:pointer">
|
|
|
</div>
|
|
|
|
|
|
<!-- <el-button-group type="vertical" v-model="buttonGroup1">
|
|
@@ -412,7 +412,7 @@ function onflclick(e,idx)
|
|
|
|
|
|
// }
|
|
|
|
|
|
-
|
|
|
+ isShow.value = true;
|
|
|
//地图被销毁就不用添加点坐标了
|
|
|
if (!isDestroy.value) {
|
|
|
|
|
@@ -935,7 +935,12 @@ const initMap = () => {
|
|
|
})
|
|
|
})
|
|
|
|
|
|
- map.value.addControl(new AMap.Scale()) // 比例尺
|
|
|
+ map.value.addControl(new AMap.Scale({
|
|
|
+ position:{
|
|
|
+ right:'80px',
|
|
|
+ bottom:'20px'
|
|
|
+ }
|
|
|
+ })) // 比例尺
|
|
|
// map.value.addControl(new AMap.OverView());// 鹰眼
|
|
|
// map.value.addControl(new AMap.HawkEye());// 鹰眼 2.0
|
|
|
map.value.addControl(new AMap.MapType()) // 图层切换
|
|
@@ -1168,7 +1173,7 @@ onUnmounted(() => {
|
|
|
.jg_button {
|
|
|
position: absolute;
|
|
|
bottom: 15px;
|
|
|
- left: 150px;
|
|
|
+ left: 30px;
|
|
|
|
|
|
/*border: red solid 1px;*/
|
|
|
z-index: 1999;
|