SimpleLineSymbol

Uses predefined patterns and colors to symbolize graphics and features that have polyline geometry. Simple line symbols display graphics using predefined line style patterns such as SimpleLineSymbolStyle.Solid, SimpleLineSymbolStyle.Dash, or SimpleLineSymbolStyle.Dot.

Since

200.1.0

See also

Constructors

Link copied to clipboard
constructor(style: SimpleLineSymbolStyle = SimpleLineSymbolStyle.Solid, color: Color = Color.white, width: Float = 1.0f, markerStyle: SimpleLineSymbolMarkerStyle = SimpleLineSymbolMarkerStyle.None, markerPlacement: SimpleLineSymbolMarkerPlacement = SimpleLineSymbolMarkerPlacement.End)

Creates a simple line symbol object with a style, color, width, and line end marker.

Properties

Link copied to clipboard

The simple line symbol end marker placement of the simple line symbol.

Link copied to clipboard

The simple line symbol end marker style of the simple line symbol.

Link copied to clipboard

The style of the simple line symbol. SimpleLineSymbolStyle.Solid if an error occurs.

Inherited properties

Link copied to clipboard

True if the line symbol is drawn with anti-aliasing, false otherwise.

Link copied to clipboard

The color of the line symbol. When getting the color (or tint color) from a symbol, the consensus value (for all layers) is reported. If there is no consensus (one or more layers have different colors), a null value is reported for the color. Likewise, setting a value for color on a symbol will apply that color to all layers the symbol contains.

Link copied to clipboard

The thickness of the line symbol outline in device-independent pixels (DIPs). The default value is 1.0.

Functions

Link copied to clipboard
open override fun clone(): SimpleLineSymbol

Clones the SimpleLineSymbol.

Link copied to clipboard
open operator override fun equals(other: Any?): Boolean
Link copied to clipboard

Gets a MultilayerPolylineSymbol from a SimpleLineSymbol. This method allows you to create complex and custom symbols with multiple layers of different types of symbology. Simple line symbol provides a factory of predefined line styles such as dash and dash_dot_dot. This method generates a MultilayerPolylineSymbol with a SolidStrokeSymbolLayer and a predefined collection of DashGeometricEffect.

Inherited functions

Link copied to clipboard
suspend fun createSwatch(screenScale: Float, width: Float? = null, height: Float? = null, backgroundColor: Color = Color.transparent): Result<BitmapDrawable>

Creates a swatch of the symbol. This method will scale the symbol up or down in order to fit it in to the desired width and height of the swatch.

suspend fun createSwatch(screenScale: Float, width: Float, height: Float, geometry: Geometry, backgroundColor: Color = Color.transparent): Result<BitmapDrawable>

Creates a swatch of the symbol.

Link copied to clipboard
open override fun hashCode(): Int
Link copied to clipboard
open override fun toJson(): String

Convert an object to JSON string.