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?]
    )

    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.

Public