YMKPlacemarkView

@interface YMKPlacemarkView : YMKPlacemarkPresentation

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

Summary

Instance methods

- (void)setViewWithImage:(nonnull YRTViewProvider *)image
                   style:(nonnull YMKIconStyle *)style;

Sets the view with the given style for the placemark

- (void)setViewWithImage:(nonnull YRTViewProvider *)image
                   style:(nonnull YMKIconStyle *)style
                callback:(nonnull YMKCallback)callback;

Sets the view with the given style for the placemark

Properties

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

The style properties (scale, zIndex, etc

Instance methods

setViewWithImage:style:

- (void)setViewWithImage:(nonnull YRTViewProvider *)image
                   style:(nonnull YMKIconStyle *)style;

Sets the view with the given style for the placemark.


setViewWithImage:style:callback:

- (void)setViewWithImage:(nonnull YRTViewProvider *)image
                   style:(nonnull YMKIconStyle *)style
                callback:(nonnull YMKCallback)callback;

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

Parameters

onFinished

Called when the view is loaded.


Properties

style

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

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