YMKRoadEventsLayerRoadEvent
Важно
This feature is available in the Full MapKit SDK version
|
@interface YMKRoadEventsLayerRoadEvent : NSObject |
Summary
Class methods
|
+ (nonnull YMKRoadEventsLayerRoadEvent *)roadEventsLayerRoadEventWithId:(nonnull NSString *)id |
Properties
|
@property (nonatomic, readonly, nonnull) NSString *id; |
|
@property (nonatomic, readonly, nonnull) YMKPoint *position; |
|
@property (nonatomic, readonly, nonnull) NSArray<NSNumber *> *tags; |
|
@property (nonatomic, readonly, nonnull) NSString *caption; |
|
@property (nonatomic, readonly) BOOL isInFuture; |
Class methods
roadEventsLayerRoadEventWithId:position:tags:caption:isInFuture:
|
+ (nonnull YMKRoadEventsLayerRoadEvent *)roadEventsLayerRoadEventWithId:(nonnull NSString *)id |
Properties
id
|
@property (nonatomic, readonly, nonnull) NSString *id; |
The road event unique id.
position
|
@property (nonatomic, readonly, nonnull) YMKPoint *position; |
Position of the road event on the globe.
tags
|
@property (nonatomic, readonly, nonnull) NSArray<NSNumber *> *tags; |
Set of road event tags.
caption
|
@property (nonatomic, readonly, nonnull) NSString *caption; |
Text caption displayed under the road event icon.
isInFuture
|
@property (nonatomic, readonly) BOOL isInFuture; |
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.