GestureManager

public final class GestureManager : GestureHandlerDelegate

Undocumented

  • Configuration options for the built-in gestures

    Declaration

    Swift

    public var options: GestureOptions { get set }
  • The gesture recognizer for the pan gesture

    Declaration

    Swift

    public var panGestureRecognizer: UIGestureRecognizer { get }
  • The gesture recognizer for the “pinch to zoom” gesture

    Declaration

    Swift

    public var pinchGestureRecognizer: UIGestureRecognizer { get }
  • The gesture recognizer for the rotate gesture

    Declaration

    Swift

    public var rotateGestureRecognizer: UIGestureRecognizer { get }
  • The gesture recognizer for the pitch gesture

    Declaration

    Swift

    public var pitchGestureRecognizer: UIGestureRecognizer { get }
  • The gesture recognizer for the “double tap to zoom in” gesture

    Declaration

    Swift

    public var doubleTapToZoomInGestureRecognizer: UIGestureRecognizer { get }
  • The gesture recognizer for the “double touch to zoom out” gesture

    Declaration

    Swift

    public var doubleTouchToZoomOutGestureRecognizer: UIGestureRecognizer { get }
  • The gesture recognizer for the quickZoom gesture

    Declaration

    Swift

    public var quickZoomGestureRecognizer: UIGestureRecognizer { get }
  • The gesture recognizer for the single tap gesture

    Note

    The single tap gesture recognizer is primarily used to route tap events to the *AnnotationManagers. You can add a target-action pair to this gesture recognizer to be notified when a single tap occurs on the map.

    Declaration

    Swift

    public var singleTapGestureRecognizer: UIGestureRecognizer { get }
  • A stream of single tap events on the map.

    / This event is called when the user taps the map and no annotations or layers handled the gesture.

    Declaration

    Swift

    public var onMapTap: Signal<MapContentGestureContext> { get }
  • A stream of long press events.

    This event is called when the user long-presses the map and no annotations or layers handled the gesture.

    Declaration

    Swift

    public var onMapLongPress: Signal<MapContentGestureContext> { get }
  • Adds a tap handler to the specified layer.

    The handler will be called in the event, starting with the topmost layer and propagating down to each layer under the tap in order.

    Declaration

    Swift

    public func onLayerTap(_ layerId: String, handler: @escaping MapLayerGestureHandler) -> AnyCancelable
  • Adds a long press handler for the layer with layerId.

    The handler will be called in the event, starting with the topmost layer and propagating down to each layer under the tap in order.

    Declaration

    Swift

    public func onLayerLongPress(_ layerId: String, handler: @escaping MapLayerGestureHandler) -> AnyCancelable
  • Set this delegate to be called back if a gesture begins

    Declaration

    Swift

    public weak var delegate: GestureManagerDelegate?