微信小程序 includePoints方法实现map组件的轨迹点完整呈现

微信小程序 includePoints方法实现map组件的轨迹点完整呈现

首页休闲益智轨迹点更新时间:2024-08-01

微信小程序map组件,当在WXML中使用include-points="{{points}}"发现出现BUG,地图不能缩放,解决方法:

js:

var mapCtx = wx.createMapContext('map')

mapCtx.includePoints({

padding: [ 70,],

points

})

},

把所有点位传入includePoints方法解决!

查看全文
大家还看了
也许喜欢
更多游戏

Copyright © 2024 妖气游戏网 www.17u1u.com All Rights Reserved