SimpleFillSymbol

Uses predefined patterns and colors to symbolize graphics and features that have polygon geometry. Simple fill symbols can fill the interior of polygons using predefined fill patterns such as SimpleFillSymbolStyle.BackwardDiagonal, SimpleFillSymbolStyle.Vertical, SimpleFillSymbolStyle.Horizontal and SimpleFillSymbolStyle.Cross, as well as SimpleFillSymbolStyle.Solid colors. These symbols can have an optional outline, which is defined by SimpleLineSymbol.

Since

200.1.0

See also

Constructors

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

Creates a simple fill symbol object with a color, style and outline.

Properties

Link copied to clipboard

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

Inherited properties

Link copied to clipboard

The interior color of the fill symbol.

Link copied to clipboard

A line, with a specific color and width, to be applied to the fill symbol.

Functions

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

Clones the SimpleFillSymbol.

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

Gets a MultilayerPolygonSymbol from a SimpleFillSymbol. This method allows you to create complex and custom symbols with multiple layers of different types of symbology. Simple fill symbol provides a factory of predefined fill styles such as cross and backward_diagonal. This method generates a MultilayerPolygonSymbol with a HatchFillSymbolLayer for any of the styles containing lines, or a SolidFillSymbolLayer if the fill style is SimpleFillSymbolStyle.Solid.

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.