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

fillAntialias
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.

fillColor
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.

fillColorTransition
Link copied to clipboard
abstract fun fillColorTransition(options: StyleTransition): FillLayer
abstract fun fillColorTransition(block: StyleTransition.Builder.() -> Unit): 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.

fillOpacity
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.

fillOpacityTransition
Link copied to clipboard
abstract fun fillOpacityTransition(options: StyleTransition): FillLayer
abstract fun fillOpacityTransition(block: StyleTransition.Builder.() -> Unit): 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.

fillOutlineColor
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.

fillOutlineColorTransition
Link copied to clipboard
abstract fun fillOutlineColorTransition(options: StyleTransition): FillLayer
abstract fun fillOutlineColorTransition(block: StyleTransition.Builder.() -> Unit): FillLayer

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

fillPattern
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.

fillPatternTransition
Link copied to clipboard
abstract fun fillPatternTransition(options: StyleTransition): FillLayer
abstract fun fillPatternTransition(block: StyleTransition.Builder.() -> Unit): 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.

fillSortKey
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.

fillTranslate
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.

fillTranslateAnchor
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.

fillTranslateTransition
Link copied to clipboard
abstract fun fillTranslateTransition(options: StyleTransition): FillLayer
abstract fun fillTranslateTransition(block: StyleTransition.Builder.() -> Unit): FillLayer

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

filter
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.

maxZoom
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.

minZoom
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.

sourceLayer
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.

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

Whether this layer is displayed.

Inheritors

FillLayer
Link copied to clipboard