ViewportOptions
@_spi(Experimental)
public struct ViewportOptions : Hashable
Configuraton options for Viewport
.
-
Indicates whether the
Viewport
should idle when theMapView
receives touch input.Set this property to
false
to enable building customViewportState
s 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
.