onReady: function () {
this.mapCtx = wx.createMapContext('map'); //建立初始地圖
},
//坐标點出現在一個視野範圍
includePoints: function () {
var that = this;
that.mapCtx.includePoints({
padding: [100, 80, 100, 80],
points: that.data.polyline[0].points //放入所有坐标軸的數組 并引用此方法
})
},