public static interface MapView.MapEventListener
Modifier and Type | Method and Description |
---|---|
void |
onDoubleTap(int x,
int y)
Fires when a user double-taps the MapView
|
void |
onDrag(int x,
int y)
Fires while the MapView is being dragged
|
void |
onFingerDown(int x,
int y)
Fires when a ACTION_DOWN event is raised from the MapView
|
void |
onFingerUp(int x,
int y)
Fires when a ACTION_UP event is raised from the MapView
|
void |
onFling(int sx,
int sy,
int dx,
int dy)
Fires when a user initiates a fling action
|
void |
onFlingComplete(int x,
int y)
Fires when a fling action has completed
|
void |
onPinch(int x,
int y)
Fires while a user is pinching the MapView
|
void |
onPinchComplete(int x,
int y)
Fires when a user completes a pinch action
|
void |
onPinchStart(int x,
int y)
Fires when a user starts a pinch action
|
void |
onRenderComplete()
Fires when the rendering thread has completed updating the visible tiles, but before cleanup
|
void |
onRenderStart()
Fires when the rendering thread has started to update the visible tiles.
|
void |
onScaleChanged(double scale)
Fires when the MapView's scale has updated
|
void |
onScrollChanged(int x,
int y)
Fires when the MapView's scroll position has updated
|
void |
onTap(int x,
int y)
Fires when a user taps the MapView
|
void |
onZoomComplete(double scale)
Fires when a zoom action ends (typically through a pinch of double-tap action,
or by programmatic animated zoom methods.
|
void |
onZoomLevelChanged(int oldZoom,
int currentZoom)
Fires when the MapView should start using a new ZoomLevel
|
void |
onZoomStart(double scale)
Fires when a zoom action starts (typically through a pinch of double-tap action,
or by programmatic animated zoom methods.
|
void onFingerDown(int x, int y)
x
- (int) the x position of the eventy
- (int) the y position of the eventvoid onFingerUp(int x, int y)
x
- (int) the x position of the eventy
- (int) the y position of the eventvoid onDrag(int x, int y)
x
- (int) the x position of the eventy
- (int) the y position of the eventvoid onDoubleTap(int x, int y)
x
- (int) the x position of the eventy
- (int) the y position of the eventvoid onTap(int x, int y)
x
- (int) the x position of the eventy
- (int) the y position of the eventvoid onPinch(int x, int y)
x
- (int) the x position of the eventy
- (int) the y position of the eventvoid onPinchStart(int x, int y)
x
- (int) the x position of the eventy
- (int) the y position of the eventvoid onPinchComplete(int x, int y)
x
- (int) the x position of the eventy
- (int) the y position of the eventvoid onFling(int sx, int sy, int dx, int dy)
sx
- (int) the x position of the start of the flingsy
- (int) the y position of the start of the flingdx
- (int) the x position of the end of the flingdy
- (int) the y position of the end of the flingvoid onFlingComplete(int x, int y)
x
- (int) the final x scroll position of the MapView after the flingy
- (int) the final y scroll position of the MapView after the flingvoid onScaleChanged(double scale)
scale
- (double) the new scale of the MapView (0-1)void onScrollChanged(int x, int y)
x
- (int) the new x scroll position of the MapViewy
- (int) the new y scroll position of the MapViewvoid onZoomStart(double scale)
scale
- (double) the new scale of the MapView (0-1)void onZoomComplete(double scale)
scale
- (double) the new scale of the MapView (0-1)void onZoomLevelChanged(int oldZoom, int currentZoom)
oldZoom
- (int) the zoom level the MapView was using before the changecurrentZoom
- (int) the zoom level the MapView has changed tovoid onRenderStart()
void onRenderComplete()