YMKPlacemarkMapObject
- Summary
- Instance methods
- setIconWith(_:)
- setIconWith(_:style:)
- setIconWith(_:callback:)
- setIconWith(_:style:callback:)
- setIconStyleWith(_:)
- useCompositeIcon()
- useAnimation()
- setViewWithView(_:)
- setViewWithView(_:style:)
- setViewWithView(_:callback:)
- setViewWithView(_:style:callback:)
- setScaleFunctionWithPoints(_:)
- setTextWithText(_:)
- setTextWithText(_:style:)
- setTextStyleWith(_:)
- Properties
class YMKPlacemarkMapObject : YMKMapObject |
Represents a geo-positioned object on the map.
Summary
Instance methods
func setIconWith(_ image: UIImage) |
func setIconWith( image: UIImage, style: YMKIconStyle_) |
func setIconWith( image: UIImage, callback: @escaping YMKCallback_) |
func setIconWith(_ image: UIImage, |
func setIconStyleWith( style: YMKIconStyle_) |
func useCompositeIcon() -> YMKCompositeIcon |
func useAnimation() -> YMKPlacemarkAnimation |
func setViewWithView( view: YRTViewProvider_) |
func setViewWithView( view: YRTViewProvider, style: YMKIconStyle_) |
func setViewWithView( view: YRTViewProvider, callback: @escaping YMKCallback_) |
func setViewWithView( view: YRTViewProvider_, |
func setScaleFunctionWithPoints(_ points: [NSValue]) |
func setTextWithText(_ text: String) |
func setTextWithText( text: String, style: YMKTextStyle_) |
func setTextStyleWith( style: YMKTextStyle_) |
Properties
var direction: Float { get set } |
var opacity: Float { get set } |
Instance methods
setIconWith(_:)
func setIconWith(_ image: UIImage) |
Sets an icon with the default style for the placemark. Resets the animation, the composite icon, the view and the model.
setIconWith(_:style:)
func setIconWith( image: UIImage, style: YMKIconStyle_) |
Sets an icon with the given style for the placemark. Resets the animation, the composite icon, the view and the model.
setIconWith(_:callback:)
func setIconWith( image: UIImage, callback: @escaping YMKCallback_) |
Sets an icon with the default style for the placemark. Resets the animation, the composite icon, the view and the model. The callback is called immediately after the image finished loading. This means you can, for example, change the placemark visibility with a new icon.
Parameters |
|
onFinished |
Called when the icon is loaded. |
setIconWith(_:style:callback:)
func setIconWith(_ image: UIImage, |
Sets an icon with the given style for the placemark. Resets the animation, the composite icon, the view and the model. The callback is called immediately after the image finished loading. This means you can, for example, change the placemark visibility with a new icon.
Parameters |
|
onFinished |
Called when the icon is loaded. |
setIconStyleWith(_:)
func setIconStyleWith( style: YMKIconStyle_) |
Changes the icon style. Valid only for the single icon, the view and the animated icon.
useCompositeIcon()
func useCompositeIcon() -> YMKCompositeIcon |
Sets and returns the composite icon. Resets the single icon, the animation, the view and the model.
useAnimation()
func useAnimation() -> YMKPlacemarkAnimation |
Sets and returns the placemark animation. Resets the single icon, the composite icon, the view and the model.
setViewWithView(_:)
func setViewWithView( view: YRTViewProvider_) |
Sets the view with the default style for the placemark. Resets icons, animation and the model.
setViewWithView(_:style:)
func setViewWithView( view: YRTViewProvider, style: YMKIconStyle_) |
Sets the view with the given style for the placemark. Resets icons, animation and the model.
setViewWithView(_:callback:)
func setViewWithView( view: YRTViewProvider, callback: @escaping YMKCallback_) |
Sets the view with the default style for the placemark. Resets icons, animation and the model. The callback will be called immediately after the view finished loading.
Parameters |
|
onFinished |
Called when the icon is loaded. |
setViewWithView(_:style:callback:)
func setViewWithView( view: YRTViewProvider_, |
Sets the view with the given style for the placemark. Resets icons, animation and the model. The callback will be called immediately after the view finished loading.
Parameters |
|
onFinished |
Called when the icon is loaded. |
setScaleFunctionWithPoints(_:)
func setScaleFunctionWithPoints(_ points: [NSValue]) |
Sets piecewise linear scale, depending on the zoom. The 'points' must be sorted by x; x coordinates must be unique. If zoom < minZoom(points) or zoom > maxZoom(points), it is set within the defined bounds before applying the function. By default, the scale function is defined by a single point (1, 1). If points is null or points.empty(), it resets the function to the default. If points.size() == 1, the scale is constant and equals point.y.
setTextWithText(_:)
func setTextWithText(_ text: String) |
Sets the text for the placemark, current text style is used
Parameters |
|
text |
is a string in UTF-8 encoding |
setTextWithText(_:style:)
func setTextWithText( text: String, style: YMKTextStyle_) |
Sets the text with the given style for the placemark
Parameters |
|
text |
is a string in UTF-8 encoding |
setTextStyleWith(_:)
func setTextStyleWith( style: YMKTextStyle_) |
Changes the text style.
Properties
geometry
var geometry: YMKPoint { get set } |
Undocumented
direction
var direction: Float { get set } |
Angle between the direction of an object and the direction to north. Measured in degrees. Default: 0.f.
opacity
var opacity: Float { get set } |
Opacity multiplicator for the placemark content. Values below 0 will be set to 0. Default: 1.