Важно

This feature is available in the Full MapKit SDK version

YMKRoadEventsLayerRoadEvent

class YMKRoadEventsLayerRoadEvent : NSObject

Undocumented

Summary

Class methods

class func roadEventsLayerRoadEvent(withId id: String,
                                     position: YMKPoint,
                                         tags: [NSNumber],
                                      caption: String,
                                   isInFuture: Bool) -> YMKRoadEventsLayerRoadEvent

Properties

var id: String { get }
The road event unique id

var positionYMKPoint { get }
Position of the road event on the globe

var tags: [NSNumber] { get }
Set of road event tags

var caption: String { get }
Text caption displayed under the road event icon

var isInFuture: Bool { get }
Some road events can be not active yet, but still must be displayed to notify users about future events, for example drawbridges or closures

Class methods

roadEventsLayerRoadEvent(withId:position:tags:caption:isInFuture:)

class func roadEventsLayerRoadEvent(withId id: String,
                                     position: YMKPoint,
                                         tags: [NSNumber],
                                      caption: String,
                                   isInFuture: Bool) -> YMKRoadEventsLayerRoadEvent


Properties

id

var id: String { get }

The road event unique id.


position

var position: YMKPoint { get }

Position of the road event on the globe.


tags

var tags: [NSNumber] { get }

Set of road event tags.


caption

var caption: String { get }

Text caption displayed under the road event icon.


isInFuture

var isInFuture: Bool { get }

Some road events can be not active yet, but still must be displayed to notify users about future events, for example drawbridges or closures. Usually such events have a greyscale icon and/or clock drawn in the icon's corner.