Class YMKLayerOptions

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

Class Methods

Properties

active

Inactive layers are not displayed on the map and do not request any tiles from TileProvider.

animateOnActivation

Indicates whether layer activation should be animated.

cacheable

Determines whether tiles are cached on persistent storage or not.

nightModeAvailable

Indicates availability of night mode for this layer (for example, night mode is disabled for the satellite layer).

version_

<!FIXME What for? I have Layer::invalidate.

active

Inactive layers are not displayed on the map and do not request any tiles from TileProvider.

animateOnActivation

Indicates whether layer activation should be animated.

cacheable

Determines whether tiles are cached on persistent storage or not.

nightModeAvailable

Indicates availability of night mode for this layer (for example, night mode is disabled for the satellite layer).

version_

<!FIXME What for? I have Layer::invalidate.

Method Detail

+layerOptionsWithActive:nightModeAvailable:cacheable:version_:animateOnActivation:

+ (nonnull YMKLayerOptions *)layerOptionsWithActive:(BOOL)active
                                 nightModeAvailable:(BOOL)nightModeAvailable
                                          cacheable:(BOOL)cacheable
                                           version_:(nonnull NSString *)version_
                                animateOnActivation:(BOOL)animateOnActivation 

Property Detail

active

(assign, readwrite) BOOL active

Inactive layers are not displayed on the map and do not request any tiles from TileProvider.

animateOnActivation

(assign, readwrite) BOOL animateOnActivation

Indicates whether layer activation should be animated.

cacheable

(assign, readwrite) BOOL cacheable

Determines whether tiles are cached on persistent storage or not.

nightModeAvailable

(assign, readwrite) BOOL nightModeAvailable

Indicates availability of night mode for this layer (for example, night mode is disabled for the satellite layer).

Default: true.

version_

(copy, readwrite) NSString * version_

<!FIXME What for? I have Layer::invalidate.

And I don't have version at startup time>

Provide the version if you want your layer to be cached on disk.