收藏
回答

include-points赋值后但无效?

wxml:

<map id="maplongitude="{{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,]},

视野并不会自动缩放

回答关注问题邀请回答
收藏

2 个回答

登录 后发表内容
问题标签