Commit 0139f2c9751340d45691d2fedab8bf37e24ecdb8

Authored by wangfan
1 parent 98e04b6a

C端调整

Showing 1 changed file with 3 additions and 3 deletions
... ... @@ -189,7 +189,7 @@ Page({
if(this.mapCtx){
this.mapCtx.getRegion({
success:(res)=>{
console.log('regionchange.getRegion.onpos',res)
console.log('onpos.getRegion',res)
//if(res.southwest.latitude!=this.mapData.region.southwest.latitude) {
this.mapData.region = res
//this.getMarkers();
... ... @@ -222,7 +222,7 @@ Page({
this.mapCtx.getRegion({
success:(res)=>{
console.log('regionchange.getRegion',res)
if(res.southwest.latitude!=this.mapData.region.southwest.latitude) {
if((res.southwest.latitude!=this.mapData.region.southwest.latitude) || this.data.hasSuggestion) {
this.mapData.region = res
if(this.data.hasSuggestion){
this.getMarkers();
... ... @@ -348,7 +348,7 @@ Page({
//视野不匹配
this.mapCtx.getRegion({
success:(res)=>{
console.log('mapUpdated.getRegion',res)
console.log('hasInRegion.getRegion',res)
this.mapData.region=res
},
})
... ...