MMKIcon

@interface MMKIcon : MMKPlacemarkPresentation

Provides an interface to set icon and its style for a placemark.

Summary

Instance methods

- (void)setImageWithImage:(nonnull UIImage *)image
                    style:(nonnull MMKIconStyle *)style;

Sets the image with the given style for the icon

- (void)setImageWithImage:(nonnull UIImage *)image
                    style:(nonnull MMKIconStyle *)style
                 callback:(nonnull MMKCallback)callback;

Sets the image with the given style for the icon

Properties

@property (nonatomic, assign, unsafe_unretained, readwrite, nonnull)
    MMKIconStyle *style;

The style properties (scale, zIndex, etc

Instance methods

setImageWithImage:style:

- (void)setImageWithImage:(nonnull UIImage *)image
                    style:(nonnull MMKIconStyle *)style;

Sets the image with the given style for the icon.


setImageWithImage:style:callback:

- (void)setImageWithImage:(nonnull UIImage *)image
                    style:(nonnull MMKIconStyle *)style
                 callback:(nonnull MMKCallback)callback;

Sets the image with the given style for the icon. The callback will be called immediately after the icon finished loading.

Parameters

onFinished

Called when the icon is loaded.


Properties

style

@property (nonatomic, assign, unsafe_unretained, readwrite, nonnull)
    MMKIconStyle *style;

The style properties (scale, zIndex, etc.) of the icon placemark. Note: The current style cannot be modified directly - you must reset it to apply changes.