微信小程序 腾讯地图 地图标点markers 缩放全部显示 include-points 没效果 自适应

let mapctx = wx.createMapContext('mymap', that); mapctx.includePoints({ points:points, padding:[100,100,100,100], //被你发现了,可以设置上右下左的间距(px).不其实只能用第一个值10
posted @ 2021-10-09 16:03  西瓜霜  阅读(1997)  评论(0编辑  收藏  举报