MapView

public class MapView extends MapViewBase implements GestureDetector.OnGestureListener, GestureDetector.OnDoubleTapListener, ScaleGestureDetector.OnScaleGestureListener, MapEventListener

Fields

DISPLAY_REDRAW_TIMEOUT

public static final int DISPLAY_REDRAW_TIMEOUT

mCurrentFocusLocation

protected PointF mCurrentFocusLocation

mCurrentMouseOffset

protected PointF mCurrentMouseOffset

mCurrentSpan

protected double mCurrentSpan

mDrawingState

protected int mDrawingState

mGestureDetector

protected final GestureDetector mGestureDetector

mScaleFactor

protected double mScaleFactor

mScaleGestureDetector

protected final ScaleGestureDetector mScaleGestureDetector

mScroller

protected Scroller mScroller

mStartDrawTime

protected long mStartDrawTime

mStartMouseLocation

protected PointF mStartMouseLocation

uiHandler

final Handler uiHandler

Constructors

MapView

public MapView(Context context, MapDrawable map)

Methods

computeScroll

public void computeScroll()

drawMapDrawable

public void drawMapDrawable()

onAttachedToWindow

protected void onAttachedToWindow()

onDetachedFromWindow

protected void onDetachedFromWindow()

onDoubleTap

public boolean onDoubleTap(MotionEvent e)

onDoubleTapEvent

public boolean onDoubleTapEvent(MotionEvent e)

onDown

public boolean onDown(MotionEvent e)

onDraw

protected synchronized void onDraw(Canvas canvas)

onExtentChanged

public void onExtentChanged(float zoom, GeoPoint center)

onFling

public boolean onFling(MotionEvent e1, MotionEvent e2, float velocityX, float velocityY)

onLayerAdded

public void onLayerAdded(int id)

onLayerChanged

public void onLayerChanged(int id)

onLayerDeleted

public void onLayerDeleted(int id)

onLayerDrawFinished

public synchronized void onLayerDrawFinished(int id, float percent)

onLayerDrawStarted

public void onLayerDrawStarted()

onLayersReordered

public void onLayersReordered()

onLongPress

public void onLongPress(MotionEvent event)

onScale

public boolean onScale(ScaleGestureDetector scaleGestureDetector)

onScaleBegin

public boolean onScaleBegin(ScaleGestureDetector scaleGestureDetector)

onScaleEnd

public void onScaleEnd(ScaleGestureDetector scaleGestureDetector)

onScroll

public boolean onScroll(MotionEvent event1, MotionEvent event2, float distanceX, float distanceY)

onShowPress

public void onShowPress(MotionEvent e)

onSingleTapConfirmed

public boolean onSingleTapConfirmed(MotionEvent e)

onSingleTapUp

public boolean onSingleTapUp(MotionEvent e)

onTouchEvent

public boolean onTouchEvent(MotionEvent event)

onVisibilityChanged

protected void onVisibilityChanged(View changedView, int visibility)

panMoveTo

protected void panMoveTo(MotionEvent e)

panStart

protected void panStart(MotionEvent e)

panStop

protected void panStop()

panTo

public void panTo(GeoPoint center)

scheduleInvalidate

public void scheduleInvalidate()

zoom

protected void zoom(ScaleGestureDetector scaleGestureDetector)

zoomIn

public void zoomIn()

zoomOut

public void zoomOut()

zoomStart

protected void zoomStart(ScaleGestureDetector scaleGestureDetector)

zoomStop

protected void zoomStop()