|
...
|
...
|
@@ -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)=>{
|
...
|
...
|
|