public static interface MapController.GestureDelegate
Modifier and Type | Method and Description |
---|---|
void |
mapDidMove(MapController mapControl,
Point3d[] corners,
boolean userMotion)
Called for every single visible frame of movement.
|
void |
mapDidStartMoving(MapController mapControl,
boolean userMotion)
Called when the map first starts moving.
|
void |
mapDidStopMoving(MapController mapControl,
Point3d[] corners,
boolean userMotion)
Called when the map stops moving.
|
void |
userDidLongPress(MapController mapController,
SelectedObject[] selObjs,
Point2d loc,
Point2d screenLoc)
The user long pressed somewhere, either on a selectable object or nor
|
void |
userDidSelect(MapController mapControl,
SelectedObject[] selObjs,
Point2d loc,
Point2d screenLoc)
The user selected the given object.
|
void |
userDidTap(MapController mapControl,
Point2d loc,
Point2d screenLoc)
The user tapped somewhere, but not on a selectable object.
|
void userDidSelect(MapController mapControl, SelectedObject[] selObjs, Point2d loc, Point2d screenLoc)
mapControl
- The maply controller this is associated with.selObjs
- The objects the user selected (e.g. MaplyScreenMarker).loc
- The location they tapped on. This is in radians.screenLoc
- The location on the OpenGL surface.void userDidTap(MapController mapControl, Point2d loc, Point2d screenLoc)
mapControl
- The maply controller this is associated with.loc
- The location they tapped on. This is in radians.screenLoc
- The location on the OpenGL surface.void userDidLongPress(MapController mapController, SelectedObject[] selObjs, Point2d loc, Point2d screenLoc)
mapController
- The maply controller this is associated with.selObjs
- The objects (e.g. MaplyScreenMarker) that the user long pressed or null if there was noneloc
- The location they tapped on. This is in radians.screenLoc
- The location on the OpenGL surface.void mapDidStartMoving(MapController mapControl, boolean userMotion)
mapControl
- The map controller this is associated with.userMotion
- Set if the motion was caused by a gesture.void mapDidStopMoving(MapController mapControl, Point3d[] corners, boolean userMotion)
mapControl
- The map controller this is associated with.corners
- Corners of the viewport. If one of them is null, that means it doesn't land anywhere valid.userMotion
- Set if the motion was caused by a gesture.void mapDidMove(MapController mapControl, Point3d[] corners, boolean userMotion)
mapControl
- The map controller this is associated with.corners
- Corners of the viewport. If one of them is null, that means it doesn't land anywhere valid.userMotion
- Set if the motion was caused by a gesture.