Важно

This feature is available in the Full MapKit SDK version

YMKRoadEventsLayerStyleProvider

protocol YMKRoadEventsLayerStyleProvider : NSObjectProtocol

Undocumented

Summary

Instance methods

func provideStyle(with roadEventStylingProperties: YMKRoadEventsLayerRoadEventStylingProperties,
                                      isNightMode: Bool,
                                      scaleFactor: Float,
                                            style: YMKRoadEventsLayerRoadEventStyle) -> Bool
Provide style for given road event

func provideHighlightCircleStyle(withIsNightMode isNightMode: Bool,
                                               highlightMode: YMKRoadEventsLayerHighlightMode) -> YMKRoadEventsLayerHighlightCircleStyle?
Undocumented

Instance methods

provideStyle(with:isNightMode:scaleFactor:style:)

func provideStyle(with roadEventStylingProperties: YMKRoadEventsLayerRoadEventStylingProperties,
                                      isNightMode: Bool,
                                      scaleFactor: Float,
                                            style: YMKRoadEventsLayerRoadEventStyle) -> Bool

Provide style for given road event. Must produce same style for same input arguments.

Parameters

scaleFactor

Scale factor of a map window displaying this road event. Road event icon image scale factor must match this value.

Returns

false if road event must not be displayed at all.


provideHighlightCircleStyle(withIsNightMode:highlightMode:)

func provideHighlightCircleStyle(withIsNightMode isNightMode: Bool,
                                               highlightMode: YMKRoadEventsLayerHighlightMode) -> YMKRoadEventsLayerHighlightCircleStyle?

Undocumented


Предыдущая
Следующая