ios和android,map组件中一样的scale级别,同为8,缩放比例不一致,android为200km,ios为150km
![]()
![]()
<view class="page-body">
<view class="page-section page-section-gap">
<map
id="myMap"
style="width: 100%; height: 300px;"
latitude="{{latitude}}"
longitude="{{longitude}}"
markers="{{markers}}"
covers="{{covers}}"
scale="{{showLevel}}"
circles="{{circles}}"
show-location
></map>
</view>
</view>
|
Page({
data: {
latitude: 31.194255518,
longitude: 121.32063992,
markers: [{
id: 1,
latitude: 23.099994,
longitude: 113.324520,
name: 'T.I.T 创意园',
iconPath: '/image/location.png',
label:{
content:'测试',
color: "#ff00ff",
fontSize:12,
x:-30,
y:-30
}
}],
covers: [{
latitude: 23.099994,
longitude: 113.344520,
iconPath: '/image/location.png'
}, {
latitude: 23.099994,
longitude: 113.304520,
iconPath: '/image/location.png'
}],
circles: [{
longitude: 121.455222,
latitude: 31.24868,
fillColor: "#ffffff",
radius: 10000000
}],
showLevel:8,
}
})
|