feat(): 图标
parent
aa79676ee2
commit
78cc8810c8
|
|
@ -9,8 +9,11 @@
|
||||||
top: '-' + statusBarHeight + 'px'
|
top: '-' + statusBarHeight + 'px'
|
||||||
}" id="map" ref="map" :latitude="latitude" :longitude="longitude" :markers="marker"
|
}" id="map" ref="map" :latitude="latitude" :longitude="longitude" :markers="marker"
|
||||||
:show-location="true" scale="16.5" :enable-satellite="enableSatellite" theme="satellite" @markertap="markertap">
|
:show-location="true" scale="16.5" :enable-satellite="enableSatellite" theme="satellite" @markertap="markertap">
|
||||||
|
<image src="/static/tabs/dingwei.png" class="location" @click="onControlTap"></image>
|
||||||
<cover-image src="/static/tabs/dingwei.png" class="location" @click="onControlTap"></cover-image>
|
<view class="tc-style">
|
||||||
|
<image src="/static/tabs/dingwei.png" style="width: 45rpx;height: 45rpx;" @click="onControlTap"></image>
|
||||||
|
<view style="font-size: 10rpx;">图层</view>
|
||||||
|
</view>
|
||||||
</map>
|
</map>
|
||||||
|
|
||||||
</view>
|
</view>
|
||||||
|
|
@ -26,19 +29,12 @@
|
||||||
{
|
{
|
||||||
latitude: 31.4954,
|
latitude: 31.4954,
|
||||||
longitude: 114.7693,
|
longitude: 114.7693,
|
||||||
iconPath: '/static/tabs/add.png',
|
iconPath: '/static/tabs/shenliu1.png',
|
||||||
width: "25",
|
width: "20",
|
||||||
height: "25",
|
height: "20",
|
||||||
id:1,
|
id:1,
|
||||||
|
title:"渗流监测"
|
||||||
},
|
},
|
||||||
{
|
|
||||||
latitude: 31.4951,
|
|
||||||
longitude: 114.767,
|
|
||||||
iconPath: '/static/tabs/add.png',
|
|
||||||
width: "25",
|
|
||||||
height: "25",
|
|
||||||
id:2,
|
|
||||||
}
|
|
||||||
],
|
],
|
||||||
dingwei: '../../static/tabs/dingwei.png',
|
dingwei: '../../static/tabs/dingwei.png',
|
||||||
map:null,
|
map:null,
|
||||||
|
|
@ -73,18 +69,18 @@
|
||||||
if(item.id === e.detail.markerId){
|
if(item.id === e.detail.markerId){
|
||||||
item.height=55;
|
item.height=55;
|
||||||
item.width=55;
|
item.width=55;
|
||||||
item.label={
|
// item.label={
|
||||||
content:"测试",
|
// content:"测试",
|
||||||
color:"#57a7f0",
|
// color:"#57a7f0",
|
||||||
bgColor:"transparent"
|
// bgColor:"transparent"
|
||||||
}
|
// }
|
||||||
}else{
|
}else{
|
||||||
item.height=25;
|
item.height=25;
|
||||||
item.width=25;
|
item.width=25;
|
||||||
item.label={
|
// item.label={
|
||||||
content:" ",
|
// content:" ",
|
||||||
bgColor:"transparent"
|
// bgColor:"transparent"
|
||||||
}
|
// }
|
||||||
}
|
}
|
||||||
}));
|
}));
|
||||||
console.log("newMarker",newMarker);
|
console.log("newMarker",newMarker);
|
||||||
|
|
@ -104,9 +100,21 @@
|
||||||
position: absolute;
|
position: absolute;
|
||||||
width: 35px;
|
width: 35px;
|
||||||
height:35px;
|
height:35px;
|
||||||
bottom: 130px;
|
bottom: 50px;
|
||||||
left:10px;
|
left:10px;
|
||||||
background-color: #fff;
|
background-color: #fff;
|
||||||
padding: 5px;
|
padding: 5px;
|
||||||
}
|
}
|
||||||
|
.tc-style{
|
||||||
|
display: flex;
|
||||||
|
align-items: center;
|
||||||
|
position: absolute;
|
||||||
|
font-size: 12px;
|
||||||
|
padding: 5px;
|
||||||
|
top: 200px;
|
||||||
|
right:10px;
|
||||||
|
background-color: #fff;
|
||||||
|
|
||||||
|
// padding: 5px;
|
||||||
|
}
|
||||||
</style>
|
</style>
|
||||||
Binary file not shown.
|
After Width: | Height: | Size: 216 B |
File diff suppressed because one or more lines are too long
File diff suppressed because one or more lines are too long
Loading…
Reference in New Issue