Added getDestination() calls to retrive destination point from
CompassOverlay Change-Id: I98a1d3f585a21faa5966c9718b84c75e94a84d24 Signed-off-by: Ricky Barrette <rickbarrette@gmail.com>
This commit is contained in:
Binary file not shown.
@@ -41,6 +41,14 @@ public class SkyHoookUserOverlayMapFragment extends MapFragmentBase implements G
|
||||
mUserOverlay.followUser(followUser);
|
||||
}
|
||||
|
||||
/**
|
||||
* @return return the current destination
|
||||
* @author ricky barrette
|
||||
*/
|
||||
public GeoPoint getDestination(){
|
||||
return mUserOverlay.getDestination();
|
||||
}
|
||||
|
||||
/**
|
||||
* @return the users current location
|
||||
* @author ricky barrette
|
||||
@@ -60,6 +68,12 @@ public class SkyHoookUserOverlayMapFragment extends MapFragmentBase implements G
|
||||
mCompassListener.onCompassUpdate(bearing);
|
||||
}
|
||||
|
||||
@Override
|
||||
public void onFirstFix(boolean isFistFix) {
|
||||
if(mGeoPointLocationListener != null)
|
||||
mGeoPointLocationListener.onFirstFix(isFistFix);
|
||||
}
|
||||
|
||||
/**
|
||||
* Called when has a location to report
|
||||
* @author ricky barrette
|
||||
@@ -153,10 +167,4 @@ public class SkyHoookUserOverlayMapFragment extends MapFragmentBase implements G
|
||||
public void setGeoPointLocationListener(GeoPointLocationListener listener){
|
||||
mGeoPointLocationListener = listener;
|
||||
}
|
||||
|
||||
@Override
|
||||
public void onFirstFix(boolean isFistFix) {
|
||||
if(mGeoPointLocationListener != null)
|
||||
mGeoPointLocationListener.onFirstFix(isFistFix);
|
||||
}
|
||||
}
|
||||
@@ -41,6 +41,14 @@ public class UserOverlayMapFragment extends MapFragmentBase implements GeoPointL
|
||||
mUserOverlay.followUser(followUser);
|
||||
}
|
||||
|
||||
/**
|
||||
* @return return the current destination
|
||||
* @author ricky barrette
|
||||
*/
|
||||
public GeoPoint getDestination(){
|
||||
return mUserOverlay.getDestination();
|
||||
}
|
||||
|
||||
/**
|
||||
* @return the users current location
|
||||
* @author ricky barrette
|
||||
@@ -60,6 +68,12 @@ public class UserOverlayMapFragment extends MapFragmentBase implements GeoPointL
|
||||
mCompassListener.onCompassUpdate(bearing);
|
||||
}
|
||||
|
||||
@Override
|
||||
public void onFirstFix(boolean isFistFix) {
|
||||
if(mGeoPointLocationListener != null)
|
||||
mGeoPointLocationListener.onFirstFix(isFistFix);
|
||||
}
|
||||
|
||||
/**
|
||||
* Called when skyhook has a location to report
|
||||
* @author ricky barrette
|
||||
@@ -153,10 +167,4 @@ public class UserOverlayMapFragment extends MapFragmentBase implements GeoPointL
|
||||
public void setGeoPointLocationListener(GeoPointLocationListener listener){
|
||||
mGeoPointLocationListener = listener;
|
||||
}
|
||||
|
||||
@Override
|
||||
public void onFirstFix(boolean isFistFix) {
|
||||
if(mGeoPointLocationListener != null)
|
||||
mGeoPointLocationListener.onFirstFix(isFistFix);
|
||||
}
|
||||
}
|
||||
@@ -188,6 +188,14 @@ public class CompasOverlay extends Overlay implements CompassListener {
|
||||
return mBearing;
|
||||
}
|
||||
|
||||
/**
|
||||
* @return return the current destination
|
||||
* @author ricky barrette
|
||||
*/
|
||||
public GeoPoint getDestination(){
|
||||
return mDestination;
|
||||
}
|
||||
|
||||
/**
|
||||
* Called from the compass Sensor to update the current bearing
|
||||
* (non-Javadoc)
|
||||
|
||||
@@ -311,6 +311,14 @@ public abstract class UserOverlayBase extends Overlay implements GeoPointLocatio
|
||||
isFollowingUser = followUser;
|
||||
}
|
||||
|
||||
/**
|
||||
* @return return the current destination
|
||||
* @author ricky barrette
|
||||
*/
|
||||
public GeoPoint getDestination(){
|
||||
return mCompass.getDestination();
|
||||
}
|
||||
|
||||
/**
|
||||
* returns the users current bearing
|
||||
* @return
|
||||
|
||||
Reference in New Issue
Block a user