map组件通过mapContext.includePoints设置padding在真机调试中无效
<!-- wxml -->
<map id="myMap" style="width:95%;height: 600rpx;" include-points="{{true}}" markers='{{markers}}'
latitude="{{latitude}}" longitude="{{longitude}}">
</map>
<!-- js -->
const mapContext = wx.createMapContext('myMap');
mapContext.includePoints({
padding: [100],
points: this.data.markers.map(marker => ({
longitude: marker.longitude,
latitude: marker.latitude
}))
});
你好,麻烦提供出现问题的具体机型、微信版本号、系统版本号,以及能复现问题的代码片段(https://developers.weixin.qq.com/miniprogram/dev/devtools/minicode.html)
问题解决了吗?