|
...
|
...
|
@@ -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
|
|
|
|
},
|
|
|
|
})
|
...
|
...
|
|