AttributionButtonOptions

public struct AttributionButtonOptions : OrnamentOptionsProtocol, Equatable

Used to configure position, margin, and visibility for the map’s attribution button.

  • The position of the attribution button.

    The default value for this property is .bottomTrailing.

    Declaration

    Swift

    public var position: OrnamentPosition
  • The margins of the attribution button.

    The default value for this property is CGPoint(x: 8.0, y: 8.0).

    Declaration

    Swift

    public var margins: CGPoint
  • Initializes an AttributionButtonOptions.

    Declaration

    Swift

    public init(
        position: OrnamentPosition = .bottomTrailing,
        margins: CGPoint = .init(x: 8.0, y: 8.0)
    )

    Parameters

    position

    The position of the attribution button.

    margins

    The margins of the attribution button.