YMKIcon

@interface YMKIcon : YMKPlacemarkPresentation

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

Summary

Instance methods

- (void)setImageWithImage:(nonnull UIImage *)image;
Sets the image with the default style for the icon

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

Sets the image with the given style for the icon

- (void)setImageWithImage:(nonnull UIImage *)image
                    style:(nonnull YMKIconStyle *)style
                 callback:(nonnull YMKCallback)callback;

Sets the image with the given style for the icon

- (void)setViewWithView:(nonnull YRTViewProvider *)view;
Sets the view with the given style for the icon

- (void)setViewWithView:(nonnull YRTViewProvider *)view
                  style:(nonnull YMKIconStyle *)style;

Sets the view with the default style for the icon

- (void)setViewWithView:(nonnull YRTViewProvider *)view
                  style:(nonnull YMKIconStyle *)style
               callback:(nonnull YMKCallback)callback;

Sets the view with the given style for the icon

Properties

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

The style properties (scale, zIndex, etc

Instance methods

setImageWithImage:

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

Sets the image with the default style for the icon.


setImageWithImage:style:

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

Sets the image with the given style for the icon.


setImageWithImage:style:callback:

- (void)setImageWithImage:(nonnull UIImage *)image
                    style:(nonnull YMKIconStyle *)style
                 callback:(nonnull YMKCallback)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.


setViewWithView:

- (void)setViewWithView:(nonnull YRTViewProvider *)view;

Sets the view with the given style for the icon.


setViewWithView:style:

- (void)setViewWithView:(nonnull YRTViewProvider *)view
                  style:(nonnull YMKIconStyle *)style;

Sets the view with the default style for the icon.


setViewWithView:style:callback:

- (void)setViewWithView:(nonnull YRTViewProvider *)view
                  style:(nonnull YMKIconStyle *)style
               callback:(nonnull YMKCallback)callback;

Sets the view 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)
    YMKIconStyle *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.


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