问题:设置了三个坐标,绘制了线路,需要视野里显示完整路线。但是按照官网给的include-points属性设置,发现无效果。
摘自微信官方文档:

wxml文件:
<map id="map" class="receive_map" include-points='{
{points}}' polyline="{
{polyline}}" markers="{
{markers}}" ></map>
解决办法一:创建 map 对象,用includePoints方法来主动触发。
onLoad: function () {
let mapCtx = wx.createMapContext('map');
const points = [
{

最低0.47元/天 解锁文章
2227

被折叠的 条评论
为什么被折叠?



