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 for the icon

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

Sets the image for the icon

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

Sets the image for the icon

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

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

Sets the view for the icon

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

Sets the view 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 for the icon.

Parameters

style

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

onFinished

Optional callback invoked when the icon is loaded.


setImageWithImage:style:

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

Sets the image for the icon.

Parameters

style

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

onFinished

Optional callback invoked when the icon is loaded.


setImageWithImage:style:callback:

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

Sets the image for the icon.

Parameters

style

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

onFinished

Optional callback invoked when the icon is loaded.


setViewWithView:

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

Sets the view for the icon.

Parameters

style

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

onFinished

Optional callback invoked when the icon is loaded.


setViewWithView:style:

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

Sets the view for the icon.

Parameters

style

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

onFinished

Optional callback invoked when the icon is loaded.


setViewWithView:style:callback:

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

Sets the view for the icon.

Parameters

style

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

onFinished

Optional callback invoked 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.


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