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 the availability of night mode for this layer (for example, night mode is disabled for the satellite layer).

overzoomMode

Whether to render tiles from adjacent zoom levels in place of absent or translucent tiles.

Method Detail

+layerOptionsWithActive:nightModeAvailable:cacheable:animateOnActivation:overzoomMode:

+ (nonnull YMKLayerOptions *)layerOptionsWithActive:(BOOL)active
                                 nightModeAvailable:(BOOL)nightModeAvailable
                                          cacheable:(BOOL)cacheable
                                animateOnActivation:(BOOL)animateOnActivation
                                       overzoomMode:(YMKOverzoomMode)overzoomMode 

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 the availability of night mode for this layer (for example, night mode is disabled for the satellite layer).

Default: true.

overzoomMode

(assign, readwrite) YMKOverzoomMode overzoomMode

Whether to render tiles from adjacent zoom levels in place of absent or translucent tiles.