MagnitudeOfDelayStyle
public struct MagnitudeOfDelayStyle
Represents the traffic incident’s style properties that have specific values per magnitude of delay. Traffic incidents may have different magnitudes of delay associated with them: unknown, minor, moderate, major, or indefinite.
Important
This is a Public Preview API. It may be changed or removed at any time.-
init(lineColor:lineOutlineColor: markerLabelTextColor: markerLabelTextOutlineColor: markerPinBaseByCategory: markerPinIconByCategory: linePatternTexture: linePatternDisplay: ) Initializes marker visibility by zoom level and camera tilt. Zoom level and tilt are defined in closed ranges.
Declaration
Swift
public init( lineColor: UIColor, lineOutlineColor: UIColor, markerLabelTextColor: UIColor, markerLabelTextOutlineColor: UIColor, markerPinBaseByCategory: [TrafficIncidentCategoryKey: UIImage?], markerPinIconByCategory: [TrafficIncidentCategoryKey: UIImage?], linePatternTexture: UIImage? = nil, linePatternDisplay: LinePatternDisplay? = nil )Parameters
lineColorThe color of the traffic line.
lineOutlineColorThe outline color of the traffic line.
markerLabelTextColorThe color of the label text on the traffic marker.
markerLabelTextOutlineColorThe outline color of the label text on the traffic marker.
markerPinBaseByCategoryThe collection of marker pin base images by category.
markerPinIconByCategoryThe collection of marker pin icon images by category. It can’t contain
TrafficIncidentCategoryKey.jamkey.linePatternTextureThe pattern texture of the traffic line.
linePatternDisplayLine pattern display configuration for a specific zoom range.
-
The color of the traffic line.
Declaration
Swift
public let lineColor: UIColor -
The outline color of the traffic line.
Declaration
Swift
public let lineOutlineColor: UIColor -
The color of the label text on the traffic marker.
Declaration
Swift
public let markerLabelTextColor: UIColor -
The outline color of the label text on the traffic marker.
Declaration
Swift
public let markerLabelTextOutlineColor: UIColor -
The collection of marker pin base images by category
Declaration
Swift
public let markerPinBaseByCategory: [TrafficIncidentCategoryKey : UIImage?] -
The collection of marker pin icon images by category
Declaration
Swift
public let markerPinIconByCategory: [TrafficIncidentCategoryKey : UIImage?] -
The pattern texture image for traffic line.
Declaration
Swift
public let linePatternTexture: UIImage? -
Line pattern display configuration for a specific zoom range
Declaration
Swift
public let linePatternDisplay: LinePatternDisplay?
MagnitudeOfDelayStyle Structure Reference