Warning

This feature is available in the Full MapKit SDK version

MMKRoadEventsLayerRoadEventStyle

@interface MMKRoadEventsLayerRoadEventStyle : NSObject

Undocumented

Summary

Instance methods

- (void)setIconImage:(nonnull UIImage *)image;
Road event icon image

Properties

@property (nonatomic, assign, unsafe_unretained, readwrite) NSInteger zoomMin;
Road event is visible only if current camera zoom is greater or equal than this value

@property (nonatomic, assign, unsafe_unretained, readwrite) CGPoint iconAnchor;
Icon anchor, (0, 0) is top left and (1

@property (nonatomic, assign, unsafe_unretained, readwrite, nonnull)
    NSArray<NSValue *> *zoomScaleFunction;

Piecewise linear scale function

@property (nonatomic, assign, unsafe_unretained, readwrite, nullable)
    MMKRoadEventsLayerTextStyle *captionStyle;

Style of caption displayed under the road event icon

@property (nonatomic, assign, unsafe_unretained, readwrite)
    CGPoint pulsationCenter;

Pulsation center on road event pin image (see HighlightMode)

@property (nonatomic, readonly, getter=isValid) BOOL valid;
Tells if this object is valid or no

Instance methods

setIconImage:

- (void)setIconImage:(nonnull UIImage *)image;

Road event icon image.


Properties

zoomMin

@property (nonatomic, assign, unsafe_unretained, readwrite) NSInteger zoomMin;

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


iconAnchor

@property (nonatomic, assign, unsafe_unretained, readwrite) CGPoint iconAnchor;

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


zoomScaleFunction

@property (nonatomic, assign, unsafe_unretained, readwrite, nonnull)
    NSArray<NSValue *> *zoomScaleFunction;

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


captionStyle

@property (nonatomic, assign, unsafe_unretained, readwrite, nullable)
    MMKRoadEventsLayerTextStyle *captionStyle;

Style of caption displayed under the road event icon.

Optional property, can be nil.


pulsationCenter

@property (nonatomic, assign, unsafe_unretained, readwrite)
    CGPoint pulsationCenter;

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


valid

@property (nonatomic, readonly, getter=isValid) BOOL valid;

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.