OrnamentOptions
public struct OrnamentOptions : Equatable
Used to configure Ornament-specific capabilities of the map
All margin values are relative to the MapView’s safe area. To allow the safe area (and thereby ornaments) to track the presence of navigation bars and tab bars, make MapView the root view of a view controller.
-
The ornament options for the map’s scale bar..
Declaration
Swift
public var scaleBar: ScaleBarViewOptions
-
The ornament options for the map’s compass view.
Declaration
Swift
public var compass: CompassViewOptions
-
Per our terms of service, a Mapbox map is required to display both a Mapbox logo as well as an information icon that contains attribution information. See https://docs.mapbox.com/help/how-mapbox-works/attribution/ for details.
Declaration
Swift
public var logo: LogoViewOptions
-
The ornament options for the map’s attribution button.
Declaration
Swift
public var attributionButton: AttributionButtonOptions