6.3.2.12.1. CurrentLocationOverlay

public class CurrentLocationOverlay extends Overlay implements GpsEventListener

6.3.2.12.1.1. Fields

6.3.2.12.1.1.1. WITH_ACCURACY

public static final int WITH_ACCURACY

6.3.2.12.1.1.2. WITH_MARKER

public static final int WITH_MARKER

6.3.2.12.1.1.3. mTolerancePX

protected final float mTolerancePX

6.3.2.12.1.2. Constructors

6.3.2.12.1.2.1. CurrentLocationOverlay

public CurrentLocationOverlay(Context context, MapViewOverlays mapViewOverlays)

6.3.2.12.1.3. Methods

6.3.2.12.1.3.1. draw

public void draw(Canvas canvas, MapDrawable mapDrawable)

6.3.2.12.1.3.2. drawOnPanning

public void drawOnPanning(Canvas canvas, PointF currentMouseOffset)

6.3.2.12.1.3.3. drawOnZooming

public void drawOnZooming(Canvas canvas, PointF currentFocusLocation, float scale)

6.3.2.12.1.3.4. getCurrentLocation

public Location getCurrentLocation()

6.3.2.12.1.3.5. getDefaultMarker

public Bitmap getDefaultMarker()

6.3.2.12.1.3.6. getPanThreshold

double getPanThreshold()

6.3.2.12.1.3.7. onBestLocationChanged

public void onBestLocationChanged(Location location)

6.3.2.12.1.3.8. onGpsStatusChanged

public void onGpsStatusChanged(int event)

6.3.2.12.1.3.9. onLocationChanged

public void onLocationChanged(Location location)

6.3.2.12.1.3.10. setAutopanningEnabled

public void setAutopanningEnabled(boolean isAutopanningEnabled)

6.3.2.12.1.3.11. setColor

public void setColor(int color)

Set default markers overlay color and accuracy marker color

Parameters:
  • color – new color

6.3.2.12.1.3.12. setMovingMarker

public void setMovingMarker(int movingMarkerResource)

6.3.2.12.1.3.13. setShowAccuracy

public void setShowAccuracy(boolean isEnabled)

6.3.2.12.1.3.14. setStandingMarker

public void setStandingMarker(int standingMarkerResource)

6.3.2.12.1.3.15. startShowingCurrentLocation

public void startShowingCurrentLocation()

6.3.2.12.1.3.16. stopShowingCurrentLocation

public void stopShowingCurrentLocation()

6.3.2.12.1.3.17. updateMode

public void updateMode(String newMode)