LineOptions

data class LineOptions(val width: Float = 8.0f, val opacity: Float = 0.8f, val color: Int = WEMAP_BLUE, val dashPattern: PropertyValue<Array<Float>>? = null) : IStringConvertibleCompact

A data class containing information about the options of the line.

Constructors

Link copied to clipboard
constructor(width: Float = 8.0f, opacity: Float = 0.8f, color: Int = WEMAP_BLUE, dashPattern: PropertyValue<Array<Float>>? = null)

Properties

Link copied to clipboard
val color: Int

The color with which the line will be drawn. Default is #2F7DE1

Link copied to clipboard
val dashPattern: PropertyValue<Array<Float>>?

Specifies the lengths of the alternating dashes and gaps that form the dash pattern. The lengths are later scaled by the line width. To convert a dash length to density-independent pixels, multiply the length by the current line width. Note that GeoJSON sources with lineMetrics: true specified won't render dashed lines to the expected scale. Also note that zoom-dependent expressions will be evaluated only at integer zoom levels. Default is null

Link copied to clipboard

The opacity at which the line will be drawn. Default is 0.8

Link copied to clipboard

Line thickness. This property is measured in points. Default is 8 points

Functions

Link copied to clipboard
open override fun toStringCompact(): String