Other Type Aliases

The following type aliases are available globally.

  • Handles tap on a layer.

    This handler receives a rendered feature from a gesture input and context with the related information.

    Declaration

    Swift

    public typealias MapLayerGestureHandler = (QueriedFeature, MapContentGestureContext) -> Bool
  • Handles url opening.

    Declaration

    Swift

    @available(iOS 13, *)
    @_documentation(visibility: public)
    @_spi(Experimental)
    public typealias MapURLOpener = (URL) -> Void
  • An action called when a new location is emitted.

    Declaration

    Swift

    @available(iOS 13.0, *)
    @_documentation(visibility: public)
    @_spi(Experimental)
    public typealias LocationUpdateAction = (Location) -> Void