wxml:
<map id="map" longitude="{{longitude}}" latitude="{{latitude}}"
include-points="{{includepoints}}"
scale="{{scale}}" markers="{{markers}}"
polyline="{{polyline}}" show-location
style="width: 100%; height: {{view.Height}}px;"></map>
赋值逻辑代码:
latitude: (23.429669+res.latitude)/2,
longitude: (113.236140+res.longitude)/2,
includepoints:{points:[{latitude:23.429669,longitude:113.236140},{latitude:res.latitude,longitude:res.longitude}],padding:[ 70,]},
视野并不会自动缩放
你好,麻烦提供出现问题的具体机型、微信版本号、系统版本号,以及能复现问题的代码片段(https://developers.weixin.qq.com/miniprogram/dev/devtools/minicode.html)
1234请求帮忙!