MapInitOptions

public final class MapInitOptions : NSObject

Options used when initializing MapView.

Contains the MapOptions (including GlyphsRasterizationOptions) that are required to initialize a MapView.

  • Associated MapOptions

    Declaration

    Swift

    public let mapOptions: MapOptions
  • Style URI for initializing the map. Defaults to Mapbox Streets.

    Declaration

    Swift

    public let styleURI: StyleURI?
  • String representation of JSON style spec. Has precedence over styleURI.

    Declaration

    Swift

    public let styleJSON: String?
  • Camera options for initializing the map. CameraOptions default to 0.0 for each value.

    Declaration

    Swift

    public let cameraOptions: CameraOptions?
  • Sample count to control multisample anti-aliasing (MSAA) option for rendering.

    Passing 4 enables MSAA x4 if it is supported. Default is 1 (MSAA turned off).

    Declaration

    Swift

    public let antialiasingSampleCount: Int
  • Creates new instance of MapInitOptions.

    Declaration

    Swift

    public init(
        mapOptions: MapOptions = MapOptions(),
        cameraOptions: CameraOptions? = nil,
        styleURI: StyleURI? = .standard,
        styleJSON: String? = nil,
        antialiasingSampleCount: Int = 1
    )

    Parameters

    mapOptions

    MapOptions; see GlyphsRasterizationOptions for the default used for glyph rendering.

    cameraOptions

    CameraOptions to be applied to the map, overriding the default camera that has been specified in the style.

    styleURI

    Style URI for the map to load. Defaults to .streets, but can be nil.

    styleJSON

    Style JSON in String representation. Has precedence over styleURI.

  • Undocumented

    Declaration

    Swift

    public override func isEqual(_ object: Any?) -> Bool
  • Undocumented

    Declaration

    Swift

    public override var hash: Int { get }