|
...
|
...
|
@@ -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;
|
...
|
...
|
|