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.

Lifecycle

  • 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

    lineColor

    The color of the traffic line.

    lineOutlineColor

    The outline color of the traffic line.

    markerLabelTextColor

    The color of the label text on the traffic marker.

    markerLabelTextOutlineColor

    The outline color of the label text on the traffic marker.

    markerPinBaseByCategory

    The collection of marker pin base images by category.

    markerPinIconByCategory

    The collection of marker pin icon images by category. It can’t contain TrafficIncidentCategoryKey.jam key.

    linePatternTexture

    The pattern texture of the traffic line.

    linePatternDisplay

    Line pattern display configuration for a specific zoom range.

Public

  • 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.

    Important

    The pattern texture has a higher priority than lineColor and lineOutlineColor.

    Declaration

    Swift

    public let linePatternTexture: UIImage?
  • Line pattern display configuration for a specific zoom range

    Declaration

    Swift

    public let linePatternDisplay: LinePatternDisplay?