Updated Map based classes
updated map_fragment.xml to TC release api key updated MidPoint to be final updated UserOverlayBase to synchronize the animation thread abort method, and made mUserArrow volatile Change-Id: Ie79d2c8edb08b7cfdbd130a63e34d0e9ce62eb0e Signed-off-by: Ricky Barrette <rickbarrette@gmail.com>
This commit is contained in:
Binary file not shown.
@@ -4,9 +4,8 @@
|
|||||||
ricky 0rKmsWMM0D-LWOndcfwrmW-S0OXlnQl2SJCMeTg
|
ricky 0rKmsWMM0D-LWOndcfwrmW-S0OXlnQl2SJCMeTg
|
||||||
TWENTYCODES 0rKmsWMM0D-K15bEM_kwabPbNhsn4dp4rcq2q5Q
|
TWENTYCODES 0rKmsWMM0D-K15bEM_kwabPbNhsn4dp4rcq2q5Q
|
||||||
-->
|
-->
|
||||||
|
|
||||||
<com.TwentyCodes.android.location.MapView xmlns:android="http://schemas.android.com/apk/res/android"
|
<com.TwentyCodes.android.location.MapView xmlns:android="http://schemas.android.com/apk/res/android"
|
||||||
android:id="@+id/mapview"
|
android:id="@+id/mapview"
|
||||||
android:layout_width="match_parent"
|
android:layout_width="match_parent"
|
||||||
android:layout_height="match_parent"
|
android:layout_height="match_parent"
|
||||||
android:apiKey="0rKmsWMM0D-LWOndcfwrmW-S0OXlnQl2SJCMeTg" />
|
android:apiKey="0rKmsWMM0D-K15bEM_kwabPbNhsn4dp4rcq2q5Q" />
|
||||||
@@ -11,7 +11,7 @@ import com.google.android.maps.GeoPoint;
|
|||||||
* This MidPoint object will hold the information form the calculations performed by GeoUtils.midPoint().
|
* This MidPoint object will hold the information form the calculations performed by GeoUtils.midPoint().
|
||||||
* @author ricky barrette
|
* @author ricky barrette
|
||||||
*/
|
*/
|
||||||
public class MidPoint {
|
public final class MidPoint {
|
||||||
|
|
||||||
private final int mMinLatitude;
|
private final int mMinLatitude;
|
||||||
private final int mMaxLatitude;
|
private final int mMaxLatitude;
|
||||||
|
|||||||
@@ -43,7 +43,7 @@ public abstract class UserOverlayBase extends Overlay implements GeoPointLocatio
|
|||||||
|
|
||||||
private boolean isAborted;
|
private boolean isAborted;
|
||||||
|
|
||||||
public void abort(){
|
public synchronized void abort(){
|
||||||
isAborted = true;
|
isAborted = true;
|
||||||
}
|
}
|
||||||
|
|
||||||
@@ -104,10 +104,10 @@ public abstract class UserOverlayBase extends Overlay implements GeoPointLocatio
|
|||||||
|
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
private final String TAG = "UserOverlayBase";
|
private final String TAG = "UserOverlayBase";
|
||||||
private boolean isEnabled;
|
private boolean isEnabled;
|
||||||
private int mUserArrow = R.drawable.user_arrow_animation_1;
|
private volatile int mUserArrow = R.drawable.user_arrow_animation_1;
|
||||||
|
|
||||||
private AnimationThread mAnimationThread;
|
private AnimationThread mAnimationThread;
|
||||||
private float mBearing = 0;
|
private float mBearing = 0;
|
||||||
private int mAccuracy;
|
private int mAccuracy;
|
||||||
@@ -508,6 +508,13 @@ public abstract class UserOverlayBase extends Overlay implements GeoPointLocatio
|
|||||||
mCompass.setDestination(destination);
|
mCompass.setDestination(destination);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
// /**
|
||||||
|
// * Sets whether or not the users location is enabled
|
||||||
|
// * @param isEnabled
|
||||||
|
// * @author ricky barrette
|
||||||
|
// */
|
||||||
|
// public abstract void setMyLocationEnabled(boolean isEnabled);
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* UnResgisters the listener. after this call you will no longer get location updates
|
* UnResgisters the listener. after this call you will no longer get location updates
|
||||||
* @author Ricky Barrette
|
* @author Ricky Barrette
|
||||||
|
|||||||
Reference in New Issue
Block a user