MMKCompositeIcon

class MMKCompositeIcon : MMKPlacemarkPresentation

Combines multiple icons into one.

Summary

Instance methods

func setIconWithName(_ name: String, image: UIImage, style: MMKIconStyle)
Creates or resets a named layer with an icon and its style

func setIconWithName(_ name: String,
                      image: UIImage,
                      style: MMKIconStyle,
                   callback: @escaping MMKCallback)
Creates or resets a named layer that contains an icon and its style

func setIconStyleWithName(_ name: String, style: MMKIconStyle)
Changes the icon style for a specific layer

func icon(withName name: String) -> MMKIcon
Returns named Icon object that can be used to set icon and its style

func remove(withName name: String)
Removes the named layer

func removeAll()
Removes all layers

Instance methods

setIconWithName(_:image:style:)

func setIconWithName(_ name: String, image: UIImage, style: MMKIconStyle)

Creates or resets a named layer with an icon and its style.


setIconWithName(_:image:style:callback:)

func setIconWithName(_ name: String,
                      image: UIImage,
                      style: MMKIconStyle,
                   callback: @escaping MMKCallback)

Creates or resets a named layer that contains an icon and its style.

Parameters

onFinished

Called when an icon is loaded.


setIconStyleWithName(_:style:)

func setIconStyleWithName(_ name: String, style: MMKIconStyle)

Changes the icon style for a specific layer.


icon(withName:)

func icon(withName name: String) -> MMKIcon

Returns named Icon object that can be used to set icon and its style. Creates an empty Icon if it didn't exist.


remove(withName:)

func remove(withName name: String)

Removes the named layer.


removeAll()

func removeAll()

Removes all layers.