Commit 5843af4f8969dfeb8cba6f985e30a56e4bb1ce63

Authored by wangfan
1 parent 5ee9a924

c端预定

Showing 1 changed file with 8 additions and 6 deletions
... ... @@ -193,12 +193,14 @@ Page({
},
regionchange(e){
console.log('regionchange', e)
this.mapCtx.getScale({
success:(res)=>{
this.mapData.scale=res.scale;
console.log('regionchange.getScale',res,this.data.map.scale)
},
})
if(typeof this.mapCtx.getScale!='undefined') {
this.mapCtx.getScale({
success: (res) => {
this.mapData.scale = res.scale;
console.log('regionchange.getScale', res, this.data.map.scale)
},
})
}
this.mapCtx.getCenterLocation({
success:(res)=>{
... ...