SimpleFillSymbol

class SimpleFillSymbol : FillSymbol

Used to draw polygon features on a layer using simple patterns. Fill symbols are used with graphics which are based on a polygon geometry. The symbol can fill the interior of a polygon graphic with a solid color. In addition, the symbol can have an optional outline which is defined by a line symbol.

See also

Constructors

Link copied to clipboard
fun SimpleFillSymbol(    style: SimpleFillSymbolStyle = SimpleFillSymbolStyle.Solid,     color: Color = Color.white,     outline: LineSymbol? = null)

Creates a simple fill symbol object with some initial values.

Functions

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

Clones the SimpleFillSymbol.

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 operator override fun equals(other: Any?): Boolean
Link copied to clipboard
open override fun hashCode(): Int
Link copied to clipboard
open override fun toJson(): String

Convert an object to JSON string.

Link copied to clipboard
fun toMultilayerSymbol(): MultilayerPolygonSymbol

Get Multilayer polygon symbol generated from simple fill symbol. Multilayer symbol API allows users to create complex and custom symbols with multiple layers of different types of symbology. Simple fill symbol has a factory of predefined fill styles like cross, backward_diagonal etc. This helper method exports this symbol to MultilayerPolygonSymbol with HatchFillSymbolLayer defining the fill patterns.

Properties

Link copied to clipboard
var color: Color

The color for the fill symbol.

Link copied to clipboard
var outline: LineSymbol?
Link copied to clipboard
var style: SimpleFillSymbolStyle

The style of the simple fill symbol. SimpleFillSymbolStyle.Solid if an error occurs

Link copied to clipboard
open override val unknownJson: Map<String, Any>

Unknown data from the source JSON. Unknown JSON is a dictionary of values that was in the source JSON but was unparsed by this API.

Link copied to clipboard
open override val unsupportedJson: Map<String, Any>

Unsupported data from the source JSON. Unsupported JSON is a dictionary of values that are supported by web maps, but not exposed through this API.