<map
id=“myMap”
style=“width: 100%; min-height: 600px;”
latitude="{{latitude}}"
longitude="{{longitude}}"
markers="{{markers}}"
scale=“14”
>
</map>
Page({
data: {
latitude: getApp().data.latitude,
longitude: getApp().data.longitude,
tel: getApp().data.tel,
markers: [{
id: 1,
latitude: getApp().data.latitude,
longitude: getApp().data.longitude,
title: getApp().data.dwmc,
iconPath: ‘/img/address.png’,
width: 30,
height: 30,
callout: [{
content: getApp().data.dwmc,
color: ‘red’,
fontSize: 13,
borderRadius: 10,
bgColor: ‘’,
padding: 3,
display: ‘ALWAYS’,
textAlign: ‘center’
}]
}],
},
onReady: function (e) {
this.mapCtx = wx.createMapContext(‘myMap’)
},
})
为什么地图上不显示标记点的名称,和callout中的信息 是我哪里写错了吗?