map中markers的自定义customCallout属性,添加之后位置错乱
基础库:2.8.3
wxml
<map id="map" longitude="{{longitude}}" latitude=" {{latitude}}" markers="{{markers}}" scale="8" show-location
style="width: 100%; height: 100%;" bindregionchange="bindregionchange" bindmarkertap='showModal' bindtap="bindtapMap">
<cover-view slot="callout">
<cover-view marker-id="1" class='customCallout'>
</cover-view>
<cover-view marker-id="2" class='customCallout'></cover-view>
</cover-view>
</map>
js
const customCallout1 = {
id: 2,
latitude: 23.097994,
longitude: 113.323520,
iconPath: '/image/location.png',
customCallout: {
anchorY: 0,
anchorX: 0,
display: 'ALWAYS'
}
}
Page({
data: {
latitude: 23.096994,
longitude: 113.324520,
markers: [],
customCalloutMarkerIds: [],
},
onLoad(){
this.setData({
markers,
customCalloutMarkerIds: [2],
})
}
})
请具体描述问题出现的流程,并提供能复现问题的简单代码片段(https://developers.weixin.qq.com/miniprogram/dev/devtools/minicode.html)。