Warning

This feature is available in the Full MapKit SDK version

MMKRoadEventsLayerRoadEvent

@interface MMKRoadEventsLayerRoadEvent : NSObject

Undocumented

Summary

Class methods

+ (nonnull MMKRoadEventsLayerRoadEvent *)roadEventsLayerRoadEventWithId:(nonnull NSString *)id
                                                               position:(nonnull MMKPoint *)position
                                                                   tags:(nonnull NSArray<NSNumber *> *)tags
                                                                caption:(nonnull NSString *)caption
                                                             isInFuture:( BOOL)isInFuture;

Properties

@property (nonatomic, readonly, nonnull) NSString *id;
The road event unique id

@property (nonatomic, readonly, nonnull) MMKPoint *position;
Position of the road event on the globe

@property (nonatomic, readonly, nonnull) NSArray<NSNumber *> *tags;
Set of road event tags

@property (nonatomic, readonly, nonnull) NSString *caption;
Text caption displayed under the road event icon

@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

Class methods

roadEventsLayerRoadEventWithId:position:tags:caption:isInFuture:

+ (nonnull MMKRoadEventsLayerRoadEvent *)roadEventsLayerRoadEventWithId:(nonnull NSString *)id
                                                               position:(nonnull MMKPoint *)position
                                                                   tags:(nonnull NSArray<NSNumber *> *)tags
                                                                caption:(nonnull NSString *)caption
                                                             isInFuture:( BOOL)isInFuture;


Properties

id

@property (nonatomic, readonly, nonnull) NSString *id;

The road event unique id.


position

@property (nonatomic, readonly, nonnull) MMKPoint *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.