RouteTrafficIncidentStyle
Style configuration for on-route traffic incidents.
During instance construction, certain input values are checked against the range of values expected for that field (e.g., width values must be non-negative).
Default assets and resources are bundled into the library (e.g., fonts and icons). You do not need to supply any asset/resource files unless you want to customize something.
Important: This is a Public Preview API. It may be changed or removed at any time.
Constructors
Types
Represents the criteria for traffic lines to be displayed with a pattern.
Keys used for styling traffic incidents by magnitude of delay.
The traffic incident style properties that have specific values per magnitude of delay.
Represents the criteria for a traffic marker to be visible.
Keys for styling traffic incidents by category.
Properties
Whether traffic markers are visible. Default is true
.
The CapType at the traffic line's end.
The width (in dp units) of the traffic line's outline. This parameter must be a non-empty list containing non-negative values for both the width and the zoom level where the width is used. Items in this list must not contain duplicated zoom level values.
The CapType at the traffic line's start.
The width (in dp units) of the traffic line. This parameter must be a non-empty list containing non-negative values for both the width and the zoom level where the width is used. Items in this list must not contain duplicated zoom level values.
The URI of the font for the label text in traffic marker.
The anchoring that determines how the label is positioned on the traffic marker.
The offset that will be used to position the label in the traffic marker.
The width (in dp units) of the outline of the label text in the traffic marker.
The size (in dp units) of the label text in the traffic marker.
The visibility of traffic markers by category. The dictionary does not have to contain the keys of all possible categories. If a category is missing in the dictionary, markers of that category will not be displayed.
Incident style properties by magnitude of delay. As a general rule, the dictionary must contain the keys of all possible magnitudes of delay. However, this rule is relaxed if you provide MagnitudeOfDelayKey.Any; the MagnitudeOfDelayProperties associated with MagnitudeOfDelayKey.Any is used for the magnitudes of delay that were not specified with their specific keys. This means you can use the same MagnitudeOfDelayProperties for all magnitudes of delay by providing only MagnitudeOfDelayKey.Any.