MMKPlacemarkView

@interface MMKPlacemarkView : MMKPlacemarkPresentation

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

Summary

Instance methods

- (void)setViewWithImage:(nonnull MRTViewProvider *)image
                   style:(nonnull MMKIconStyle *)style;

Sets the view with the given style for the placemark

- (void)setViewWithImage:(nonnull MRTViewProvider *)image
                   style:(nonnull MMKIconStyle *)style
                callback:(nonnull MMKCallback)callback;

Sets the view with the given style for the placemark

Properties

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

The style properties (scale, zIndex, etc

Instance methods

setViewWithImage:style:

- (void)setViewWithImage:(nonnull MRTViewProvider *)image
                   style:(nonnull MMKIconStyle *)style;

Sets the view with the given style for the placemark.


setViewWithImage:style:callback:

- (void)setViewWithImage:(nonnull MRTViewProvider *)image
                   style:(nonnull MMKIconStyle *)style
                callback:(nonnull MMKCallback)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)
    MMKIconStyle *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.