MapInitOptions
public final class MapInitOptions : NSObject
Options used when initializing MapView
.
Contains the ResourceOptions
, MapOptions
(including GlyphsRasterizationOptions
)
that are required to initialize a MapView
.
-
Associated
ResourceOptions
Declaration
Swift
public let resourceOptions: ResourceOptions
-
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?
-
Initializer. The default initializer, i.e.
MapInitOptions()
will use the defaultResourceOptionsManager
to use the current shared access token.Declaration
Swift
public init(resourceOptions: ResourceOptions = ResourceOptionsManager.default.resourceOptions, mapOptions: MapOptions = MapOptions(), cameraOptions: CameraOptions? = nil, styleURI: StyleURI? = .streets, styleJSON: String? = nil)
Parameters
resourceOptions
ResourceOptions
; default creates an instance usingResourceOptionsManager.default
mapOptions
MapOptions
; seeGlyphsRasterizationOptions
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 benil
.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 }