Showing
2 changed files
with
4 additions
and
6 deletions
| @@ -224,11 +224,7 @@ Page({ | @@ -224,11 +224,7 @@ Page({ | ||
| 224 | console.log('regionchange.getRegion',res) | 224 | console.log('regionchange.getRegion',res) |
| 225 | if((res.southwest.latitude!=this.mapData.region.southwest.latitude) || this.data.hasSuggestion) { | 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){ | ||
| 228 | - this.getMarkers(); | ||
| 229 | - }else{ | ||
| 230 | - this.timeoutGetMarkers(); | ||
| 231 | - } | 227 | + this.timeoutGetMarkers(); |
| 232 | } | 228 | } |
| 233 | }, | 229 | }, |
| 234 | }) | 230 | }) |
| @@ -241,7 +237,7 @@ Page({ | @@ -241,7 +237,7 @@ Page({ | ||
| 241 | } | 237 | } |
| 242 | this.setTimeoutGetMarkers=setTimeout(()=>{ | 238 | this.setTimeoutGetMarkers=setTimeout(()=>{ |
| 243 | this.getMarkers(); | 239 | this.getMarkers(); |
| 244 | - },800) | 240 | + },500) |
| 245 | }, | 241 | }, |
| 246 | mapUpdated(e){ | 242 | mapUpdated(e){ |
| 247 | console.log('mapUpdated', e) | 243 | console.log('mapUpdated', e) |
-
Please register or login to post a comment