summaryrefslogtreecommitdiff
path: root/client/Piztor/src/com/macaroon
diff options
context:
space:
mode:
authorsjtufs <[email protected]>2013-08-28 18:11:29 +0800
committersjtufs <[email protected]>2013-08-28 18:11:29 +0800
commit4b18c323b69e6853ee08a972c7a5adcb1be2bc11 (patch)
tree1f8a0c21ddb7fb967b68fe65940387b0a3d0a2c3 /client/Piztor/src/com/macaroon
parent885d5a6078616aece0b12c521661c325b295ce6c (diff)
fixed #18
Diffstat (limited to 'client/Piztor/src/com/macaroon')
-rw-r--r--client/Piztor/src/com/macaroon/piztor/MapMaker.java5
1 files changed, 4 insertions, 1 deletions
diff --git a/client/Piztor/src/com/macaroon/piztor/MapMaker.java b/client/Piztor/src/com/macaroon/piztor/MapMaker.java
index 533cfcb..895d409 100644
--- a/client/Piztor/src/com/macaroon/piztor/MapMaker.java
+++ b/client/Piztor/src/com/macaroon/piztor/MapMaker.java
@@ -61,6 +61,8 @@ public class MapMaker extends Activity{
private LocationOverlay mLocationOverlay;
private Context context;
private MKMapTouchListener mapTouchListener;
+ boolean isFirstLoc = true;
+
/**
* popups
*/
@@ -119,9 +121,10 @@ public class MapMaker extends Activity{
*/
mLocationOverlay.setData(locationData);
mMapView.refresh();
- if (hasAnimation) {
+ if (hasAnimation || isFirstLoc) {
mMapController.animateTo(new GeoPoint((int)(locationData.latitude * 1E6), (int)(locationData.longitude * 1E6)));
}
+ isFirstLoc = true;
}
public void InitMap() {