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
-
Default style URI for initializing the map
Declaration
Swift
public let styleURI: StyleURI?
-
Default camera options for initializing the map
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)
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
.