public class MapEventLayer extends Layer implements Map.InputListener, GestureListener
| Modifier and Type | Field and Description |
|---|---|
protected static float |
FLING_MIN_THREHSHOLD
100 ms since start of move to reduce fling scroll
|
protected static float |
MIN_SLOP
2mm as minimal distance to start move: dpi / 25.4
|
protected static float |
PINCH_ROTATE_THRESHOLD |
protected static float |
PINCH_ROTATE_THRESHOLD2 |
protected static float |
PINCH_TILT_SLOPE |
protected static float |
PINCH_TILT_THRESHOLD |
protected static float |
PINCH_ZOOM_THRESHOLD |
| Constructor and Description |
|---|
MapEventLayer(Map map) |
| Modifier and Type | Method and Description |
|---|---|
void |
enableMove(boolean enable) |
void |
enableRotation(boolean enable) |
void |
enableTilt(boolean enable) |
void |
enableZoom(boolean enable) |
boolean |
moveEnabled() |
boolean |
onGesture(Gesture g,
MotionEvent e) |
void |
onInputEvent(Event e,
MotionEvent motionEvent) |
boolean |
onTouchEvent(MotionEvent e) |
boolean |
rotationEnabled() |
void |
setFixOnCenter(boolean enable)
When enabled zoom- and rotation-gestures will not move the viewport.
|
boolean |
tiltEnabled() |
boolean |
zoomEnabled() |
getRenderer, isEnabled, map, onDetach, setEnabledprotected static final float MIN_SLOP
protected static final float PINCH_ZOOM_THRESHOLD
protected static final float PINCH_TILT_THRESHOLD
protected static final float PINCH_TILT_SLOPE
protected static final float PINCH_ROTATE_THRESHOLD
protected static final float PINCH_ROTATE_THRESHOLD2
protected static final float FLING_MIN_THREHSHOLD
public MapEventLayer(Map map)
public void onInputEvent(Event e, MotionEvent motionEvent)
onInputEvent in interface Map.InputListenerpublic void enableRotation(boolean enable)
public boolean rotationEnabled()
public void enableTilt(boolean enable)
public boolean tiltEnabled()
public void enableMove(boolean enable)
public boolean moveEnabled()
public void enableZoom(boolean enable)
public boolean zoomEnabled()
public void setFixOnCenter(boolean enable)
public boolean onTouchEvent(MotionEvent e)
public boolean onGesture(Gesture g, MotionEvent e)
onGesture in interface GestureListener