HatchFillSymbolLayer

A struct that implements hatch fill symbol layer inside of the geometry attached to a multilayer polygon symbol. A HatchFillSymbolLayer represents a polygon geometry filled with hatch lines.

"Hatch lines" are uniformly spaced parallel lines. A HatchFillSymbolLayer, in a multilayer polygon symbol, fills the geometry of the symbol with the specified hatch lines. Each hatch line is itself a multilayer polyline symbol. You can define a custom hatch line (through the setPolyline and certain create methods) that is repeated in parallel throughout the inside of the geometry attached to a multilayer polygon symbol's geometry.

The HatchFillSymbolLayer provides a similar experience to the SimpleFillSymbol, but with more customizability. Whereas you can select from a list of predefined hatch fill styles for a SimpleFillSymbol, the HatchFillSymbolLayer allows you to specify a fully-customized symbol to use as the hatch line. You can also adjust line angle, offset, and separation distance.

Since

200.1.0

Constructors

Link copied to clipboard
constructor(polylineSymbol: MultilayerPolylineSymbol = MultilayerPolylineSymbol(listOf(SolidStrokeSymbolLayer(1.3333334, Color.black))), angle: Double = 0.0)

Create a hatch fill symbol layer, given a MultilayerPolylineSymbol and an angle. The fill rotates counterclockwise from East. Angle values can be negative.

Properties

Link copied to clipboard

The angle of rotation of the hatch lines in a HatchFillSymbolLayer, in degrees counterclockwise from East. The angle of rotation of the hatch lines in a HatchFillSymbolLayer. The returned values are expressed in degrees measured counterclockwise from East. If there is no angle set, the method returns 0.0. , and the function will return NAN.

Link copied to clipboard

The polyline symbol used to symbolize the hatch lines of a HatchFillSymbolLayer. The polyline symbol used to symbolize the hatch lines in a HatchFillSymbolLayer. The polyline is itself must be a multilayer symbol, specifically a MultilayerPolylineSymbol. and stored internally as points. If no polyline is specified, the default polyline applies. That default polyline has a single SolidStrokeSymbolLayer, with width of 1.3333 DIPs (1.0 in points) and opaque black color.

Link copied to clipboard

The distance between the line symbols in the hatch pattern of a HatchFillSymbolLayer, in DIPs. The distance between the hatch lines in a HatchFillSymbolLayer. Values are passed in as DIPs, and stored internally as points. The larger the value, the more the hatch lines are separated. If no value is specified, the default, 5.3333 DIPs (4.0 in points), applies. Separation values must be non-negative.

Inherited properties

Link copied to clipboard

The symbol layer color locked property. The color-locked status of the symbol layer. If color_locked is true, the color of that layer will not change.

Link copied to clipboard

The symbol layer enabled property. The enable status of the symbol layer. Layer will be rendered only if it is enabled.

Functions

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