|
...
|
...
|
@@ -65,8 +65,8 @@ Page({ |
|
|
|
mapData:{
|
|
|
|
lat:'',
|
|
|
|
lng:'',
|
|
|
|
latitude: 23.099994,
|
|
|
|
longitude: 113.324520,
|
|
|
|
latitude: 0,
|
|
|
|
longitude: 0,
|
|
|
|
scale: 18,
|
|
|
|
hasRegionchange:false,
|
|
|
|
region:{
|
|
...
|
...
|
@@ -171,7 +171,7 @@ Page({ |
|
|
|
console.log('regionchange.getRegion',res)
|
|
|
|
//if(res.southwest.latitude!=this.mapData.region.southwest.latitude) {
|
|
|
|
this.mapData.region = res
|
|
|
|
this.getMarkers();
|
|
|
|
//this.getMarkers();
|
|
|
|
//}
|
|
|
|
},
|
|
|
|
})
|
|
...
|
...
|
@@ -326,6 +326,14 @@ Page({ |
|
|
|
&& this.user.longitude<map.region.northeast.longitude){
|
|
|
|
this.hasInRegionFlag=true;
|
|
|
|
return true;
|
|
|
|
}else{
|
|
|
|
//视野不匹配
|
|
|
|
this.mapCtx.getRegion({
|
|
|
|
success:(res)=>{
|
|
|
|
console.log('mapUpdated.getRegion',res)
|
|
|
|
this.mapData.region=res
|
|
|
|
},
|
|
|
|
})
|
|
|
|
}
|
|
|
|
return false;
|
|
|
|
},
|
...
|
...
|
|