<AGSMapViewTouchDelegate> Protocol Reference


Description

A protocol which must be adopted by a class wishing to be called for touch event related actions happening on the map.

All of the methods of this protocol are optional.

Defined in:
AGSMapView.h ( ArcGIS library)
Since:
1.8
Inheritance diagram for <AGSMapViewTouchDelegate>:
AGSSketchGraphicsLayer

List of all members.

Public Member Functions

(void) - mapView:didClickAtPoint:mapPoint:graphics:
(void) - mapView:didEndTapAndHoldAtPoint:mapPoint:graphics:
(void) - mapView:didMoveTapAndHoldAtPoint:mapPoint:graphics:
(void) - mapView:didTapAndHoldAtPoint:mapPoint:graphics:
(BOOL) - mapView:shouldProcessClickAtPoint:mapPoint:

Member Function Documentation

- (void) mapView: (AGSMapView *)  mapView
didClickAtPoint: (CGPoint)  screen
mapPoint: (AGSPoint *)  mappoint
graphics: (NSDictionary *)  graphics 
[optional]

Tells the delegate the map was single-tapped at specified location.

Parameters:
mapView Map tapped by the user.
screen Location in screen coordinates.
mappoint Location in map coordinates.
graphics Graphics from all graphics layers in the map that intersect or contain the location. The dictionary contains layer name (key) : AGSGraphic array (value)
Since:
1.8

Reimplemented in AGSSketchGraphicsLayer.

- (void) mapView: (AGSMapView *)  mapView
didEndTapAndHoldAtPoint: (CGPoint)  screen
mapPoint: (AGSPoint *)  mappoint
graphics: (NSDictionary *)  graphics 
[optional]

Tells the delegate that a tap and hold event has ended.

Parameters:
mapView Map tapped and held by the user.
screen Screen coordinates of where the user ended the tap and hold.
mappoint Map coordinates of where the user ended the tap and hold.
graphics Graphics from all graphics layers in the map that intersect or contain the location. The dictionary contains layer name (key) : AGSGraphic array (value)
Since:
1.8

Reimplemented in AGSSketchGraphicsLayer.

- (void) mapView: (AGSMapView *)  mapView
didMoveTapAndHoldAtPoint: (CGPoint)  screen
mapPoint: (AGSPoint *)  mappoint
graphics: (NSDictionary *)  graphics 
[optional]

Tells the delegate that the user moved his finger while tapping and holding on the map.

Parameters:
mapView Map tapped and held by the user.
screen Location in screen coordinates.
mappoint Location in map coordinates.
graphics Graphics from all graphics layers in the map that intersect or contain the location. The dictionary contains layer name (key) : AGSGraphic array (value)
Since:
1.8
- (void) mapView: (AGSMapView *)  mapView
didTapAndHoldAtPoint: (CGPoint)  screen
mapPoint: (AGSPoint *)  mappoint
graphics: (NSDictionary *)  graphics 
[optional]

Tells the delegate that a point on the map was tapped and held at specified location.

Parameters:
mapView Map tapped and held by the user.
screen Location in screen coordinates.
mappoint Location in map coordinates.
graphics Graphics from all graphics layers in the map that intersect or contain the location. The dictionary contains layer name (key) : AGSGraphic array (value)
Since:
1.8
- (BOOL) mapView: (AGSMapView *)  mapView
shouldProcessClickAtPoint: (CGPoint)  screen
mapPoint: (AGSPoint *)  mappoint 
[optional]

Asks the delegate if the map should process the click at the given location. The default value if this method is not implemented is YES.

Parameters:
mapView Map tapped by the user.
screen Location in screen coordinates.
mappoint Location in map coordinates.
Returns:
BOOL value whether the click should be processed by the map.
Since:
2.0