Важно

This feature is available in the Full MapKit SDK version

YMKRoadEventsLayerRoadEventStyle

class YMKRoadEventsLayerRoadEventStyle : NSObject

Undocumented

Summary

Instance methods

func setIconImage(_ image: UIImage)
Road event icon image

Properties

var zoomMin: Int { get set }
Road event is visible only if current camera zoom is greater or equal than this value

var iconAnchor: CGPoint { get set }
Icon anchor, (0, 0) is top left and (1

var zoomScaleFunction: [NSValue] { get set }
Piecewise linear scale function

var captionStyleYMKRoadEventsLayerTextStyle? { get set }
Style of caption displayed under the road event icon

var pulsationCenter: CGPoint { get set }
Pulsation center on road event pin image (see HighlightMode)

var isValid: Bool { get }
Tells if this object is valid or no

Instance methods

setIconImage(_:)

func setIconImage(_ image: UIImage)

Road event icon image.


Properties

zoomMin

var zoomMin: Int { get set }

Road event is visible only if current camera zoom is greater or equal than this value.


iconAnchor

var iconAnchor: CGPoint { get set }

Icon anchor, (0, 0) is top left and (1.0, 1.0) is bottom right.


zoomScaleFunction

var zoomScaleFunction: [NSValue] { get set }

Piecewise linear scale function. See Placemark's scale function.


captionStyle

var captionStyle: YMKRoadEventsLayerTextStyle? { get set }

Style of caption displayed under the road event icon.

Optional property, can be nil.


pulsationCenter

var pulsationCenter: CGPoint { get set }

Pulsation center on road event pin image (see HighlightMode). (0, 0) is top left and (1.0, 1.0) is bottom right.


isValid

var isValid: Bool { get }

Tells if this object is valid or no. Any method called on an invalid object will throw an exception. The object becomes invalid only on UI thread, and only when its implementation depends on objects already destroyed by now. Please refer to general docs about the interface for details on its invalidation.