SafetyLocationStyle

class SafetyLocationStyle(val speedCameraLineColor: Int = DEFAULT_SPEED_CAMERA_LINE_COLOR, val speedCameraOutlineColor: Int = DEFAULT_SPEED_CAMERA_OUTLINE_COLOR, val dangerZoneLineColor: Int = DEFAULT_DANGER_ZONE_LINE_COLOR, val dangerZoneOutlineColor: Int = DEFAULT_DANGER_ZONE_OUTLINE_COLOR, val lineWidth: List<WidthByZoom> = DEFAULT_LINE_WIDTHS, val outlineWidth: List<WidthByZoom> = DEFAULT_LINE_OUTLINE_WIDTHS, val markerStyleByCategory: MutableMap<SafetyLocationType, SafetyLocationMarkerStyle> = mutableMapOf())

Represents the style used to display safety locations.

Constructors

Link copied to clipboard
constructor(speedCameraLineColor: Int = DEFAULT_SPEED_CAMERA_LINE_COLOR, speedCameraOutlineColor: Int = DEFAULT_SPEED_CAMERA_OUTLINE_COLOR, dangerZoneLineColor: Int = DEFAULT_DANGER_ZONE_LINE_COLOR, dangerZoneOutlineColor: Int = DEFAULT_DANGER_ZONE_OUTLINE_COLOR, lineWidth: List<WidthByZoom> = DEFAULT_LINE_WIDTHS, outlineWidth: List<WidthByZoom> = DEFAULT_LINE_OUTLINE_WIDTHS, markerStyleByCategory: MutableMap<SafetyLocationType, SafetyLocationMarkerStyle> = mutableMapOf())

Types

Link copied to clipboard
object Companion

Properties

Link copied to clipboard

The color of the line for danger zones.

Link copied to clipboard

The outline color of the line for danger zones.

Link copied to clipboard

The width (in dp units) of the line for safety location representing zones. 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.

Link copied to clipboard

The safety location's marker style by category. If the marker style is missing for any of the supported safety locations, a default marker style will be used.

Link copied to clipboard

The width (in dp units) of the line's outline for safety location representing zones. 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.

Link copied to clipboard

The color of the line for speed cameras representing zones.

Link copied to clipboard

The outline color of the line for speed cameras representing zones.