Class YMKSublayerManager

Provides interface to change drawing order of the map layers.

Instance Methods

- appendSublayerWithLayerId:featureType:

Creates the new sublayer and appends it to the list.

- findFirstOfWithLayerId:

Finds the first sublayer which belongs to the layer with the specified ID and returns its index.

- findFirstOfWithLayerId:featureType:

Finds the first sublayer which belongs to the layer with the specified ID and contains features of the required type, and returns its index.

- getWithSublayerIndex:

Returns the sublayer with the specified index.

- insertSublayerAfterWithTo:layerId:featureType:

Creates the new sublayer and inserts it before sublayer with the specified index.

- insertSublayerBeforeWithTo:layerId:featureType:

Creates the new sublayer and inserts it after sublayer with the specified index.

- moveAfterWithFrom:to:

Moves the sublayer to the position after sublayer with the specified index.

- moveBeforeWithFrom:to:

Moves the sublayer to the position before sublayer with the specified index.

- moveToEndWithFrom:

Moves the sublayer with the specified index to the end of the list.

- removeWithSublayerIndex:

Removes the sublayer with the specified index.

- size

Returns size of the list of sublayers.

Properties

valid

Tells if this object is valid or no.

Method Detail

-appendSublayerWithLayerId:featureType:

- (nonnull YMKSublayer *)appendSublayerWithLayerId:(nonnull NSString *)layerId
                                       featureType:(YMKSublayerFeatureType)featureType 

Creates the new sublayer and appends it to the list.

-findFirstOfWithLayerId:

- (nullable NSNumber *)findFirstOfWithLayerId:(nonnull NSString *)layerId 

Finds the first sublayer which belongs to the layer with the specified ID and returns its index.

Returns none, if no such sublayer exists.

-findFirstOfWithLayerId:featureType:

- (nullable NSNumber *)findFirstOfWithLayerId:(nonnull NSString *)layerId
                                  featureType:(YMKSublayerFeatureType)featureType 

Finds the first sublayer which belongs to the layer with the specified ID and contains features of the required type, and returns its index.

Returns none, if no such sublayer exists.

-getWithSublayerIndex:

- (nullable YMKSublayer *)getWithSublayerIndex:(NSUInteger)sublayerIndex 

Returns the sublayer with the specified index.

Returns none, if no such sublayer exists.

-insertSublayerAfterWithTo:layerId:featureType:

- (nonnull YMKSublayer *)insertSublayerAfterWithTo:(NSUInteger)to
                                           layerId:(nonnull NSString *)layerId
                                       featureType:(YMKSublayerFeatureType)featureType 

Creates the new sublayer and inserts it before sublayer with the specified index.

-insertSublayerBeforeWithTo:layerId:featureType:

- (nonnull YMKSublayer *)insertSublayerBeforeWithTo:(NSUInteger)to
                                            layerId:(nonnull NSString *)layerId
                                        featureType:(YMKSublayerFeatureType)featureType 

Creates the new sublayer and inserts it after sublayer with the specified index.

-moveAfterWithFrom:to:

- (void)moveAfterWithFrom:(NSUInteger)from
                       to:(NSUInteger)to 

Moves the sublayer to the position after sublayer with the specified index.

-moveBeforeWithFrom:to:

- (void)moveBeforeWithFrom:(NSUInteger)from
                        to:(NSUInteger)to 

Moves the sublayer to the position before sublayer with the specified index.

-moveToEndWithFrom:

- (void)moveToEndWithFrom:(NSUInteger)from 

Moves the sublayer with the specified index to the end of the list.

-removeWithSublayerIndex:

- (void)removeWithSublayerIndex:(NSUInteger)sublayerIndex 

Removes the sublayer with the specified index.

-size

- (NSUInteger)size

Returns size of the list of sublayers.

Property Detail

valid

(assign, readonly, getter=isValid) BOOL valid

Tells if this object is valid or no.

Any method called on an invalid object will throw an exception. The object becomes invalid only on UI thread, and only when its implementation depends on objects already destroyed by now. Please refer to general docs about the interface for details on its invalidation.