Commit 8bcc016c503a30619f33e898acfd68c3eaa4f4b5

Authored by vking
1 parent c18e4947

移动或缩放地图,获取更多餐厅

Showing 1 changed file with 8 additions and 4 deletions
... ... @@ -26,8 +26,8 @@ Page({
*/
data: {
map: {
latitude: def_latitude,
longitude: def_longitude,
latitude: def_latitude+0.0001,
longitude: def_longitude+0.0001,
scale: mapScale,
height: 300,
},
... ... @@ -184,7 +184,7 @@ Page({
this.selectComponent('#getpos').getPos();
if(!this.hasClickMoveToLocation){
//this.getMarkers();
this.timeoutGetMarkers();
//this.timeoutGetMarkers();
}
},
... ... @@ -245,6 +245,8 @@ Page({
sdobj.markers=[]
}
this.setData(sdobj)
this.timeoutGetMarkers()
/*
if(this.mapCtx){
//this.mapCtx.moveToLocation();
this.mapCtx.getRegion({
... ... @@ -252,13 +254,15 @@ Page({
console.log('onpos.getRegion',res)
if(this.mapData.region.southwest.latitude) {
this.mapData.region = res
//this.getMarkers();
this.timeoutGetMarkers()
}
},
})
}
*/
},
regionchange(e){
if(e.type!='end') return;
console.log('regionchange', e)
if(typeof this.mapCtx=='undefined' || !this.mapCtx) return;
this.getClassNameFlag=true;
... ...