public class MapGestureHandler
extends java.lang.Object
This is used by the MaplyController to deal with gestures on Android. If you want to mess with this, be sure to subclass the MaplyController and create your own subclass of this.
Modifier and Type | Field and Description |
---|---|
boolean |
allowPan |
boolean |
allowRotate |
boolean |
allowZoom |
Constructor and Description |
---|
MapGestureHandler(MapController inControl,
android.view.View inView) |
Modifier and Type | Method and Description |
---|---|
boolean |
onTouch(android.view.View v,
android.view.MotionEvent event) |
void |
setZoomLimits(double inMin,
double inMax) |
void |
shutdown() |
static boolean |
withinBounds(MapView mapView,
Point2d frameSize,
Point3d newLocalPos,
Point2d[] bounds)
Check that a given position will be within the given bounds.
|
public boolean allowRotate
public boolean allowZoom
public boolean allowPan
public MapGestureHandler(MapController inControl, android.view.View inView)
public void shutdown()
public void setZoomLimits(double inMin, double inMax)
public static boolean withinBounds(MapView mapView, Point2d frameSize, Point3d newLocalPos, Point2d[] bounds)
newLocalPos
- Position we're to check.bounds
- Bounding box, probably from the maplyControl.public boolean onTouch(android.view.View v, android.view.MotionEvent event)