ViewportOptions

@_spi(Experimental)
public struct ViewportOptions : Hashable

Configuraton options for Viewport.

  • Indicates whether the Viewport should idle when the MapView receives touch input.

    Set this property to false to enable building custom ViewportStates that can work simultaneously with certain types of gestures.

    Defaults to true.

    Declaration

    Swift

    public var transitionsToIdleUponUserInteraction: Bool
  • Initializes ViewportOptions.

    Declaration

    Swift

    public init(transitionsToIdleUponUserInteraction: Bool = true)

    Parameters

    transitionsToIdleUponUserInteraction

    Defaults to true.