Overlay

public abstract class Overlay

Fields

BUNDLE_KEY_TYPE

protected static final String BUNDLE_KEY_TYPE

BUNDLE_KEY_VISIBLE

protected static final String BUNDLE_KEY_VISIBLE

mContext

protected Context mContext

mIsVisible

protected boolean mIsVisible

mMapViewOverlays

protected MapViewOverlays mMapViewOverlays

Constructors

Overlay

public Overlay(Context context, MapViewOverlays mapViewOverlays)

Methods

draw

public abstract void draw(Canvas canvas, MapDrawable mapDrawable)

drawOnPanning

public abstract void drawOnPanning(Canvas canvas, PointF currentMouseOffset)

drawOnPanning

public void drawOnPanning(Canvas canvas, PointF currentMouseOffset, OverlayItem overlayItem)

drawOnZooming

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

drawOnZooming

protected void drawOnZooming(Canvas canvas, PointF currentFocusLocation, float scale, OverlayItem overlayItem, boolean scaleMarker)

drawOverlayItem

protected void drawOverlayItem(Canvas canvas, OverlayItem overlayItem)

getScaledOffset

public GeoPoint getScaledOffset(PointF currentFocusLocation, OverlayItem overlayItem, float scale, boolean scaleMarker)

isVisible

public boolean isVisible()

onRestoreState

public void onRestoreState(Bundle bundle)

onSaveState

public Bundle onSaveState()

setVisibility

public void setVisibility(boolean isVisible)