YMKIcon
|
class YMKIcon : YMKPlacemarkPresentation |
Provides an interface to set icon and its style for a placemark.
Summary
Instance methods
|
func setImageWith(_ image: UIImage) |
|
func setImageWith(_ image: UIImage, style: YMKIconStyle?) |
|
func setImageWith(_ image: UIImage, |
|
func setViewWithView(_ view: YRTViewProvider) |
|
func setViewWithView(_ view: YRTViewProvider, style: YMKIconStyle?) |
|
func setViewWithView(_ view: YRTViewProvider, |
Properties
|
var style: YMKIconStyle { get set } |
Instance methods
setImageWith(_:)
|
func setImageWith(_ image: UIImage) |
Sets the image for the icon.
|
Parameters |
|
|
style |
The icon style. If not specified, the default style is used. |
|
onFinished |
Optional callback invoked when the icon is loaded. |
setImageWith(_:style:)
|
func setImageWith(_ image: UIImage, style: YMKIconStyle?) |
Sets the image for the icon.
|
Parameters |
|
|
style |
The icon style. If not specified, the default style is used. |
|
onFinished |
Optional callback invoked when the icon is loaded. |
setImageWith(_:style:callback:)
|
func setImageWith(_ image: UIImage, |
Sets the image for the icon.
|
Parameters |
|
|
style |
The icon style. If not specified, the default style is used. |
|
onFinished |
Optional callback invoked when the icon is loaded. |
setViewWithView(_:)
|
func setViewWithView(_ view: YRTViewProvider) |
Sets the view for the icon.
|
Parameters |
|
|
style |
The icon style. If not specified, the default style is used. |
|
onFinished |
Optional callback invoked when the icon is loaded. |
setViewWithView(_:style:)
|
func setViewWithView(_ view: YRTViewProvider, style: YMKIconStyle?) |
Sets the view for the icon.
|
Parameters |
|
|
style |
The icon style. If not specified, the default style is used. |
|
onFinished |
Optional callback invoked when the icon is loaded. |
setViewWithView(_:style:callback:)
|
func setViewWithView(_ view: YRTViewProvider, |
Sets the view for the icon.
|
Parameters |
|
|
style |
The icon style. If not specified, the default style is used. |
|
onFinished |
Optional callback invoked when the icon is loaded. |
Properties
style
|
var style: YMKIconStyle { 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.