-
public interface Overlay.SnappableInterface definition for overlays that contain items that can be snapped to (for example,when the user invokes a zoom, this could be called allowing the user to snap the zoom to aninteresting point.)
-
-
Method Summary
Modifier and Type Method Description abstract booleanonSnapToItem(int x, int y, Point snapPoint, IMapView mapView)Checks to see if the given x and y are close enough to an item resulting in snapping thecurrent action (e.g. -
-
Method Detail
-
onSnapToItem
abstract boolean onSnapToItem(int x, int y, Point snapPoint, IMapView mapView)
Checks to see if the given x and y are close enough to an item resulting in snapping thecurrent action (e.g. zoom) to the item.
- Parameters:
x- The x in screen coordinates.y- The y in screen coordinates.snapPoint- To be filled with the the interesting point (in screen coordinates) that isclosest to the given x and y.mapView- The MapView that is requesting the snap.
-
-
-
-