MMKIcon

class MMKIcon : MMKPlacemarkPresentation

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

Summary

Instance methods

func setImageWith(_ image: UIImage, style: MMKIconStyle)
Sets the image with the given style for the icon

func setImageWith(_ image: UIImage,
                    style: MMKIconStyle,
                 callback: @escaping MMKCallback)
Sets the image with the given style for the icon

Properties

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

Instance methods

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,
                    style: MMKIconStyle,
                 callback: @escaping MMKCallback)

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.


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.