FillLayerDsl

interface FillLayerDsl

This Interface contains all the functions that will be exposed to Koltin DSL.

Separated the DSL receiver class to this interface to avoid IDE code suggestion for property getters.

Functions

Link copied to clipboard
abstract fun fillAntialias(fillAntialias: Expression): FillLayer
abstract fun fillAntialias(fillAntialias: Boolean = true): FillLayer

Whether or not the fill should be antialiased.

Link copied to clipboard
abstract fun fillColor(fillColor: Expression): FillLayer
abstract fun fillColor(@ColorInt fillColor: Int): FillLayer
abstract fun fillColor(fillColor: String = "#000000"): FillLayer

The color of the filled part of this layer. This color can be specified as rgba with an alpha component and the color's opacity will not affect the opacity of the 1px stroke, if it is used.

Link copied to clipboard

The color of the filled part of this layer. This color can be specified as rgba with an alpha component and the color's opacity will not affect the opacity of the 1px stroke, if it is used.

Link copied to clipboard
abstract fun fillEmissiveStrength(fillEmissiveStrength: Expression): FillLayer
abstract fun fillEmissiveStrength(fillEmissiveStrength: Double = 0.0): FillLayer

Controls the intensity of light emitted on the source features. This property works only with 3D light, i.e. when lights root property is defined.

Link copied to clipboard

Controls the intensity of light emitted on the source features. This property works only with 3D light, i.e. when lights root property is defined.

Link copied to clipboard
abstract fun fillOpacity(fillOpacity: Expression): FillLayer
abstract fun fillOpacity(fillOpacity: Double = 1.0): FillLayer

The opacity of the entire fill layer. In contrast to the fill-color, this value will also affect the 1px stroke around the fill, if the stroke is used.

Link copied to clipboard

The opacity of the entire fill layer. In contrast to the fill-color, this value will also affect the 1px stroke around the fill, if the stroke is used.

Link copied to clipboard
abstract fun fillOutlineColor(fillOutlineColor: Expression): FillLayer
abstract fun fillOutlineColor(@ColorInt fillOutlineColor: Int): FillLayer
abstract fun fillOutlineColor(fillOutlineColor: String): FillLayer

The outline color of the fill. Matches the value of fill-color if unspecified.

Link copied to clipboard

The outline color of the fill. Matches the value of fill-color if unspecified.

Link copied to clipboard
abstract fun fillPattern(fillPattern: Expression): FillLayer
abstract fun fillPattern(fillPattern: String): FillLayer

Name of image in sprite to use for drawing image fills. For seamless patterns, image width and height must be a factor of two (2, 4, 8, ..., 512). Note that zoom-dependent expressions will be evaluated only at integer zoom levels.

Link copied to clipboard
abstract fun fillSortKey(fillSortKey: Expression): FillLayer
abstract fun fillSortKey(fillSortKey: Double): FillLayer

Sorts features in ascending order based on this value. Features with a higher sort key will appear above features with a lower sort key.

Link copied to clipboard
abstract fun fillTranslate(fillTranslate: Expression): FillLayer
abstract fun fillTranslate(fillTranslate: List<Double> = listOf(0.0, 0.0)): FillLayer

The geometry's offset. Values are x, y where negatives indicate left and up, respectively.

Link copied to clipboard
abstract fun fillTranslateAnchor(fillTranslateAnchor: Expression): FillLayer
abstract fun fillTranslateAnchor(fillTranslateAnchor: FillTranslateAnchor = FillTranslateAnchor.MAP): FillLayer

Controls the frame of reference for fill-translate.

Link copied to clipboard

The geometry's offset. Values are x, y where negatives indicate left and up, respectively.

Link copied to clipboard
abstract fun filter(filter: Expression): FillLayer

A filter is a property at the layer level that determines which features should be rendered in a style layer.

Link copied to clipboard
abstract fun maxZoom(maxZoom: Double): FillLayer

The maximum zoom level for the layer. At zoom levels equal to or greater than the maxzoom, the layer will be hidden.

Link copied to clipboard
abstract fun minZoom(minZoom: Double): FillLayer

The minimum zoom level for the layer. At zoom levels less than the minzoom, the layer will be hidden.

Link copied to clipboard
abstract fun slot(slot: String): FillLayer

The slot this layer is assigned to. If specified, and a slot with that name exists, it will be placed at that position in the layer order.

Link copied to clipboard
abstract fun sourceLayer(sourceLayer: String): FillLayer

A source layer is an individual layer of data within a vector source. A vector source can have multiple source layers.

Link copied to clipboard
abstract fun visibility(visibility: Expression): FillLayer
abstract fun visibility(visibility: Visibility): FillLayer

Whether this layer is displayed.

Inheritors

Link copied to clipboard