MapSingleTapGestureDelegate
public protocol MapSingleTapGestureDelegate : class
Single Tap Gesture Delegate
-
Asks the delegate if the map should recognize this single tap and perform default functionality (which is nothing, currently).
Declaration
Swift
func mapController(_ controller: MZMapViewController, recognizer: UIGestureRecognizer, shouldRecognizeSingleTapGesture location: CGPoint) -> BoolParameters
controllerThe MZMapViewController that wants to recognize the tap.
recognizerThe recognizer that initially recognized the tap.
locationThe screen coordinates that the tap occured in relative to the bounds of the map.
Return Value
Return true for default functionality, or false if don’t want it recognized (or plan on handling it yourself).
-
Informs the delegate the map recognized a single tap gesture.
Declaration
Swift
func mapController(_ controller: MZMapViewController, recognizer: UIGestureRecognizer, didRecognizeSingleTapGesture location: CGPoint)Parameters
controllerThe MZMapViewController that recognized the tap.
recognizerThe recognizer that recognized the tap.
locationThe screen coordinates that the tap occured in relative to the bounds of the map.
View on GitHub
MapSingleTapGestureDelegate Protocol Reference