YMKCompositeIcon

@interface YMKCompositeIcon : YMKPlacemarkPresentation

Combines multiple icons into one.

Summary

Instance methods

- (void)setIconWithName:(nonnull NSString *)name image:(nonnull UIImage *)image;
Creates or resets a named layer with an icon and its style

- (void)setIconWithName:(nonnull NSString *)name
                  image:(nonnull UIImage *)image
                  style:(nullable YMKIconStyle *)style;

Creates or resets a named layer with an icon and its style

- (void)setIconWithName:(nonnull NSString *)name
                  image:(nonnull UIImage *)image
                  style:(nullable YMKIconStyle *)style
               callback:(nullable YMKCallback)callback;

Creates or resets a named layer with an icon and its style

- (void)setIconStyleWithName:(nonnull NSString *)name
                       style:(nonnull YMKIconStyle *)style;

Changes the icon style for a specific layer

- (nonnull YMKIcon *)iconWithName:(nonnull NSString *)name;
Returns named Icon object that can be used to set icon and its style

- (void)removeIconWithName:(nonnull NSString *)name;
Removes the named layer

- (void)removeAll;
Removes all layers

Instance methods

setIconWithName:image:

- (void)setIconWithName:(nonnull NSString *)name image:(nonnull UIImage *)image;

Creates or resets a named layer with an icon and its style.

Parameters

name

Unique identifier of the icon layer. Used to create or update.

style

The icon style. If not specified, the default style is used.

onFinished

Optional callback invoked when the icon is loaded.


setIconWithName:image:style:

- (void)setIconWithName:(nonnull NSString *)name
                  image:(nonnull UIImage *)image
                  style:(nullable YMKIconStyle *)style;

Creates or resets a named layer with an icon and its style.

Parameters

name

Unique identifier of the icon layer. Used to create or update.

style

The icon style. If not specified, the default style is used.

onFinished

Optional callback invoked when the icon is loaded.


setIconWithName:image:style:callback:

- (void)setIconWithName:(nonnull NSString *)name
                  image:(nonnull UIImage *)image
                  style:(nullable YMKIconStyle *)style
               callback:(nullable YMKCallback)callback;

Creates or resets a named layer with an icon and its style.

Parameters

name

Unique identifier of the icon layer. Used to create or update.

style

The icon style. If not specified, the default style is used.

onFinished

Optional callback invoked when the icon is loaded.


setIconStyleWithName:style:

- (void)setIconStyleWithName:(nonnull NSString *)name
                       style:(nonnull YMKIconStyle *)style;

Changes the icon style for a specific layer.


iconWithName:

- (nonnull YMKIcon *)iconWithName:(nonnull NSString *)name;

Returns named Icon object that can be used to set icon and its style. Creates an empty Icon if it didn't exist.


removeIconWithName:

- (void)removeIconWithName:(nonnull NSString *)name;

Removes the named layer.


removeAll

- (void)removeAll;

Removes all layers.


Предыдущая
Следующая