MMKLayerOptions

class MMKLayerOptions : NSObject

Options that are used when adding a layer to the map.

Summary

Class methods

 init(active: Bool,
 nightModeAvailable: Bool,
   cacheable: Bool,
 animateOnActivation: Bool,
 tileAppearingAnimationDuration: TimeInterval,
 overzoomMode: MMKOverzoomMode,
 transparent: Bool,
 versionSupport: Bool)

Instance methods

init()

Properties

var active: Bool { get set }
Inactive layers are not displayed on the map and do not request any tiles from TileProvider

var nightModeAvailable: Bool { get set }
Indicates the availability of night mode for this layer (for example, night mode is disabled for the satellite layer)

var cacheable: Bool { get set }
Determines whether tiles are cached on persistent storage or not

var animateOnActivation: Bool { get set }
Indicates whether layer activation/deactivation should be animated

var tileAppearingAnimationDuration: TimeInterval { get set }
Specifies duration of tile appearing animation

var overzoomModeMMKOverzoomMode { get set }
Whether to render tiles from adjacent zoom levels in place of absent or translucent tiles

var transparent: Bool { get set }
Set this flag if layer is transparent, that is parts of underlying layers can be seen through it

var versionSupport: Bool { get set }
Determines if layer supports versioning

Class methods

init(active:nightModeAvailable:cacheable:animateOnActivation:tileAppearingAnimationDuration:overzoomMode:transparent:versionSupport:)

 init(active: Bool,
 nightModeAvailable: Bool,
   cacheable: Bool,
 animateOnActivation: Bool,
 tileAppearingAnimationDuration: TimeInterval,
 overzoomMode: MMKOverzoomMode,
 transparent: Bool,
 versionSupport: 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