YMKCompositeIcon
|
@interface YMKCompositeIcon : YMKPlacemarkPresentation |
Combines multiple icons into one.
Summary
Instance methods
|
- (void)setIconWithName:(nonnull NSString *)name image:(nonnull UIImage *)image; |
|
- (void)setIconWithName:(nonnull NSString *)name |
|
- (void)setIconWithName:(nonnull NSString *)name |
|
- (void)setIconStyleWithName:(nonnull NSString *)name |
|
- (nonnull YMKIcon *)iconWithName:(nonnull NSString *)name; |
|
- (void)removeIconWithName:(nonnull NSString *)name; |
|
- (void)removeAll; |
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 |
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 |
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 |
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.