Showing
1 changed file
with
3 additions
and
3 deletions
| @@ -189,7 +189,7 @@ Page({ | @@ -189,7 +189,7 @@ Page({ | ||
| 189 | if(this.mapCtx){ | 189 | if(this.mapCtx){ |
| 190 | this.mapCtx.getRegion({ | 190 | this.mapCtx.getRegion({ |
| 191 | success:(res)=>{ | 191 | success:(res)=>{ |
| 192 | - console.log('regionchange.getRegion.onpos',res) | 192 | + console.log('onpos.getRegion',res) |
| 193 | //if(res.southwest.latitude!=this.mapData.region.southwest.latitude) { | 193 | //if(res.southwest.latitude!=this.mapData.region.southwest.latitude) { |
| 194 | this.mapData.region = res | 194 | this.mapData.region = res |
| 195 | //this.getMarkers(); | 195 | //this.getMarkers(); |
| @@ -222,7 +222,7 @@ Page({ | @@ -222,7 +222,7 @@ Page({ | ||
| 222 | this.mapCtx.getRegion({ | 222 | this.mapCtx.getRegion({ |
| 223 | success:(res)=>{ | 223 | success:(res)=>{ |
| 224 | console.log('regionchange.getRegion',res) | 224 | console.log('regionchange.getRegion',res) |
| 225 | - if(res.southwest.latitude!=this.mapData.region.southwest.latitude) { | 225 | + if((res.southwest.latitude!=this.mapData.region.southwest.latitude) || this.data.hasSuggestion) { |
| 226 | this.mapData.region = res | 226 | this.mapData.region = res |
| 227 | if(this.data.hasSuggestion){ | 227 | if(this.data.hasSuggestion){ |
| 228 | this.getMarkers(); | 228 | this.getMarkers(); |
| @@ -348,7 +348,7 @@ Page({ | @@ -348,7 +348,7 @@ Page({ | ||
| 348 | //视野不匹配 | 348 | //视野不匹配 |
| 349 | this.mapCtx.getRegion({ | 349 | this.mapCtx.getRegion({ |
| 350 | success:(res)=>{ | 350 | success:(res)=>{ |
| 351 | - console.log('mapUpdated.getRegion',res) | 351 | + console.log('hasInRegion.getRegion',res) |
| 352 | this.mapData.region=res | 352 | this.mapData.region=res |
| 353 | }, | 353 | }, |
| 354 | }) | 354 | }) |
-
Please register or login to post a comment