MMKCompositeIcon

@interface MMKCompositeIcon : MMKPlacemarkPresentation

Combines multiple icons into one.

Summary

Instance methods

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

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

- (void)setIconWithName:(nonnull NSString *)name
                  image:(nonnull UIImage *)image
                  style:(nonnull MMKIconStyle *)style
               callback:(nonnull MMKCallback)callback;

Creates or resets a named layer that contains an icon and its style

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

Changes the icon style for a specific layer

- (nonnull MMKIcon *)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:style:

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

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


setIconWithName:image:style:callback:

- (void)setIconWithName:(nonnull NSString *)name
                  image:(nonnull UIImage *)image
                  style:(nonnull MMKIconStyle *)style
               callback:(nonnull MMKCallback)callback;

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

Parameters

onFinished

Called when an icon is loaded.


setIconStyleWithName:style:

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

Changes the icon style for a specific layer.


iconWithName:

- (nonnull MMKIcon *)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.