请问有解决思路了吗?问题解决了吗
includepoints安卓真机只能识别padding第一个参数,导致无法实现功能https://developers.weixin.qq.com/miniprogram/dev/api/media/map/MapContext.includePoints.html 我们APP有个这种功能(如下图),底部灰底菜单可以上拉/下拉,地图上的选中点根据地图当前能见到的区域大小,动态合理的展示到地图视野范围呢。iOS端用includepoints可以很好的处理,但是Android端只能识别padding的第一个参数,就无法实现。但是我看腾讯实时公交、滴滴公交、车来了也实现了这种效果,能提供下实现思路吗? [图片]
2024-04-28解决了吗
MapContext.includePoints 的padding怎么设置?[图片] 我在没有设置padding的时候总有一个坐标点超过屏幕 设置padding就会出现这样[图片]
2024-04-28问题解决了吗?
map组件的mapContext.includePoints的padding设置在真机模拟中失效?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 })) });
2024-04-28