MMKLayerOptions
|
class MMKLayerOptions : NSObject |
Options that are used when adding a layer to the map.
Summary
Class methods
|
 init(active: Bool, |
Instance methods
|
init() |
Properties
|
var active: Bool { get set } |
|
var nightModeAvailable: Bool { get set } |
|
var cacheable: Bool { get set } |
|
var animateOnActivation: Bool { get set } |
|
var tileAppearingAnimationDuration: TimeInterval { get set } |
|
var overzoomMode: MMKOverzoomMode { get set } |
|
var transparent: Bool { get set } |
|
var versionSupport: Bool { get set } |
Class methods
init(active:nightModeAvailable:cacheable:animateOnActivation:tileAppearingAnimationDuration:overzoomMode:transparent:versionSupport:)
|
 init(active: Bool, |
Instance methods
init()
|
init() |
Properties
active
|
var active: Bool { get set } |
Inactive layers are not displayed on the map and do not request any tiles from TileProvider.
nightModeAvailable
|
var nightModeAvailable: Bool { get set } |
Indicates the availability of night mode for this layer (for example, night mode is disabled for the satellite layer). Default: true.
cacheable
|
var cacheable: Bool { get set } |
Determines whether tiles are cached on persistent storage or not.
animateOnActivation
|
var animateOnActivation: Bool { get set } |
Indicates whether layer activation/deactivation should be animated.
tileAppearingAnimationDuration
|
var tileAppearingAnimationDuration: TimeInterval { get set } |
Specifies duration of tile appearing animation. Can be set to 0 to disable animation. Default: 400 ms
overzoomMode
|
var overzoomMode: MMKOverzoomMode { get set } |
Whether to render tiles from adjacent zoom levels in place of absent or translucent tiles.
transparent
|
var transparent: Bool { get set } |
Set this flag if layer is transparent, that is parts of underlying layers can be seen through it. This will disable some rendering optimizations that take advantage of layer opacity.
versionSupport
|
var versionSupport: Bool { get set } |
Determines if layer supports versioning