MMKPlacemarkView

class MMKPlacemarkView : MMKPlacemarkPresentation

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

Summary

Instance methods

func setViewWithImage(_ image: MRTViewProvider, style: MMKIconStyle)
Sets the view with the given style for the placemark

func setViewWithImage(_ image: MRTViewProvider,
                        style: MMKIconStyle,
                     callback: @escaping MMKCallback)
Sets the view with the given style for the placemark

Properties

var style: MMKIconStyle { get set }
The style properties (scale, zIndex, etc

Instance methods

setViewWithImage(_:style:)

func setViewWithImage(_ image: MRTViewProvider, style: MMKIconStyle)

Sets the view with the given style for the placemark.


setViewWithImage(_:style:callback:)

func setViewWithImage(_ image: MRTViewProvider,
                        style: MMKIconStyle,
                     callback: @escaping MMKCallback)

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

var style: MMKIconStyle { get set }

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.