PolylineStyle

open class PolylineStyle(var styleName: String = "", var minMapScaleFactor: Double = 0.0, var maxMapScaleFactor: Double = 0.0, var visible: Boolean = true, var color: Int = 0, var borderColor: Int = 0, var centerColor: Int = 0, var width: Int = 1, var realUnits: Boolean = false, var dashStyle: DashStyle = DashStyle.SOLID, var halfWidthStyle: HalfWidthStyle = HalfWidthStyle.NO, var arrowWidth: Int = 0, var arrowRealUnits: Boolean = false, var arrowColor: Int = 0, var arrowDirection: ArrowDirection = ArrowDirection.TO, var arrowFilled: Boolean = true, var arrowStyle: ArrowStyle = ArrowStyle.HEAD_ONLY, var arrowPosition: ArrowPosition = ArrowPosition.MIDDLE) : CommonShapeStyle

Describes a Polyline Style to render lines and polylines on a MapView.

Parameters

styleName

Name of the shape style

minMapScaleFactor

Minimum Map Scale Factor expressed in meters / logical pixel (0: unlimited)

maxMapScaleFactor

Maximum Map Scale Factor expressed in meters / logical pixel (0: unlimited)

visible

Visibility status of this Polyline Style

color

ARGB color (default is transparent, meaning that the polyline is not visible if no color is specified)

borderColor

Optional border (ARGB) color

centerColor

Optional center (ARGB) color

width

Pen width (in pixels or real units depending on realUnits)

realUnits

Specifies whether the width should be expressed either in pixels (false) or in real units (true).

dashStyle

the DashStyle of the polyline (default is DashStyle.SOLID

halfWidthStyle

you can choose to draw half of the polyline (see HalfWidthStyle for available values)

arrowWidth

Width of the arrow (in pixels or real units, defined by arrowRealUnits)

arrowRealUnits

Specifies whether the Arrow Width should be expressed either in pixels (false) or in real units (true). Default value is false

arrowColor

ARGB color of the arrow (transparent by default)

arrowDirection

Specifies the arrow direction (default value is ArrowDirection.TO)

arrowFilled

Specifies whether arrows must be filled. (default value is true)

arrowStyle

Specifies whether arrows have to be drawn with a shaft or just a head (default value is ArrowStyle.HEAD_ONLY)

arrowPosition

Specifies the position of arrows (default value is ArrowPosition.MIDDLE)

Constructors

Link copied to clipboard
constructor(styleName: String = "", minMapScaleFactor: Double = 0.0, maxMapScaleFactor: Double = 0.0, visible: Boolean = true, color: Int = 0, borderColor: Int = 0, centerColor: Int = 0, width: Int = 1, realUnits: Boolean = false, dashStyle: DashStyle = DashStyle.SOLID, halfWidthStyle: HalfWidthStyle = HalfWidthStyle.NO, arrowWidth: Int = 0, arrowRealUnits: Boolean = false, arrowColor: Int = 0, arrowDirection: ArrowDirection = ArrowDirection.TO, arrowFilled: Boolean = true, arrowStyle: ArrowStyle = ArrowStyle.HEAD_ONLY, arrowPosition: ArrowPosition = ArrowPosition.MIDDLE)

Properties

Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
var color: Int
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
var width: Int