Commit 08aee6dad718b4af799bbde3b2eacd68f2a9d776

Authored by wangfan
1 parent abd7c0fb

C端地图

Showing 1 changed file with 11 additions and 3 deletions
... ... @@ -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;
},
... ...