// 返回中心点
backCenter() {
console.log('map', this._mapContext, this.lng, this.lat)
this._mapContext.moveToLocation({
longitude: this.lng,
latitude: this.lat,
success: (res) => {
console.log('success', res)
},
complete: (res) => {
console.log('complete', res)
}
})
},
this._mapContext.getRegion({
success: (res) => {
console.log('getRegion1', res)
},
complete: (res) => {
console.log('getRegion2', res)
}
})
1 个回复
x***@163.com (作者)
打印 createMapContext 只有一个{{"id":"myMap","pageId":1} }
createMapContext后的方法貌似都不起作用
刚试了 getScale 也不行~~
请问这个是咋回事呢