TTMapViewGestureDelegate
Objective-C
@protocol TTMapViewGestureDelegate <NSObject>
Swift
protocol TTMapViewGestureDelegate : NSObjectProtocol
TTMapViewGestureDelegate
-
Informs the delegate about panning gesture on specified map view.
Declaration
Objective-C
- (void)mapView:(TTMapView *_Nonnull)mapView didPanning:(CLLocationCoordinate2D)coordinate inState:(TTMapPanningState)state;
Swift
optional func mapView(_ mapView: TTMapView, didPanning coordinate: CLLocationCoordinate2D, in state: TTMapPanningState)
Parameters
mapView
The map view.
coordinate
for panning.
state
of the current panning gesture.
-
Tells the delegate that the specified map view with double tap gesture recognizer.
Declaration
Objective-C
- (void)mapView:(TTMapView *_Nonnull)mapView didDoubleTap:(CLLocationCoordinate2D)coordinate;
Swift
optional func mapView(_ mapView: TTMapView, didDoubleTap coordinate: CLLocationCoordinate2D)
Parameters
mapView
The map view.
coordinate
for a double tap.
-
Tells the delegate that the specified map view with single tap gesture recognizer.
Declaration
Objective-C
- (void)mapView:(TTMapView *_Nonnull)mapView didSingleTap:(CLLocationCoordinate2D)coordinate;
Swift
optional func mapView(_ mapView: TTMapView, didSingleTap coordinate: CLLocationCoordinate2D)
Parameters
mapView
The map view.
coordinate
for a single tap.
-
Tells the delegate that the specified map view with long press gesture recognizer.
Declaration
Objective-C
- (void)mapView:(TTMapView *_Nonnull)mapView didLongPress:(CLLocationCoordinate2D)coordinate;
Swift
optional func mapView(_ mapView: TTMapView, didLongPress coordinate: CLLocationCoordinate2D)
Parameters
mapView
The map view.
coordinate
for a long press.