MMKIcon
class MMKIcon : MMKPlacemarkPresentation |
Provides an interface to set icon and its style for a placemark.
Summary
Instance methods
func setImageWith(_ image: UIImage) |
func setImageWith(_ image: UIImage, style: MMKIconStyle) |
func setImageWith(_ image: UIImage, |
func setViewWithView(_ view: MRTViewProvider) |
func setViewWithView(_ view: MRTViewProvider, style: MMKIconStyle) |
func setViewWithView(_ view: MRTViewProvider, |
Properties
var style: MMKIconStyle { get set } |
Instance methods
setImageWith(_:)
func setImageWith(_ image: UIImage) |
Sets the image with the default style for the icon.
setImageWith(_:style:)
func setImageWith(_ image: UIImage, style: MMKIconStyle) |
Sets the image with the given style for the icon.
setImageWith(_:style:callback:)
func setImageWith(_ image: UIImage, |
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(_:)
func setViewWithView(_ view: MRTViewProvider) |
Sets the view with the given style for the icon.
setViewWithView(_:style:)
func setViewWithView(_ view: MRTViewProvider, style: MMKIconStyle) |
Sets the view with the default style for the icon.
setViewWithView(_:style:callback:)
func setViewWithView(_ view: MRTViewProvider, |
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
var style: MMKIconStyle { get set } |
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.