FillLayer

class FillLayer(layerId: String, sourceId: String) : Layer, FillLayerDsl

A filled polygon with an optional stroked border.

See also

Parameters

layerId

the ID of the layer

sourceId

the ID of the source

Constructors

FillLayer
Link copied to clipboard
fun FillLayer(layerId: String, sourceId: String)

Types

Companion
Link copied to clipboard
object Companion

Static variables and methods.

Functions

bindTo
Link copied to clipboard
fun bindTo(delegate: StyleInterface)

Bind the layer to the Style.

open override fun bindTo(delegate: StyleInterface, position: LayerPosition?)

Bind the layer to the map controller.

fillAntialias
Link copied to clipboard
open override fun fillAntialias(fillAntialias: Expression): FillLayer
open override fun fillAntialias(fillAntialias: Boolean): FillLayer

Whether or not the fill should be antialiased.

fillColor
Link copied to clipboard
open override fun fillColor(fillColor: Expression): FillLayer
open override fun fillColor(@ColorInt fillColor: Int): FillLayer
open override fun fillColor(fillColor: String): 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
open override fun fillColorTransition(options: StyleTransition): FillLayer

Set the FillColor property transition options

open override fun fillColorTransition(block: StyleTransition.Builder.() -> Unit): FillLayer
fillOpacity
Link copied to clipboard
open override fun fillOpacity(fillOpacity: Expression): FillLayer
open override fun fillOpacity(fillOpacity: Double): 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
open override fun fillOpacityTransition(options: StyleTransition): FillLayer

Set the FillOpacity property transition options

open override fun fillOpacityTransition(block: StyleTransition.Builder.() -> Unit): FillLayer
fillOutlineColor
Link copied to clipboard
open override fun fillOutlineColor(fillOutlineColor: Expression): FillLayer
open override fun fillOutlineColor(@ColorInt fillOutlineColor: Int): FillLayer
open override fun fillOutlineColor(fillOutlineColor: String): FillLayer

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

fillOutlineColorTransition
Link copied to clipboard
open override fun fillOutlineColorTransition(options: StyleTransition): FillLayer

Set the FillOutlineColor property transition options

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

Set the FillPattern property transition options

open override fun fillPatternTransition(block: StyleTransition.Builder.() -> Unit): FillLayer
fillSortKey
Link copied to clipboard
open override fun fillSortKey(fillSortKey: Expression): FillLayer
open override 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
open override fun fillTranslate(fillTranslate: Expression): FillLayer
open override fun fillTranslate(fillTranslate: List<Double>): FillLayer

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

fillTranslateAnchor
Link copied to clipboard
open override fun fillTranslateAnchor(fillTranslateAnchor: Expression): FillLayer
open override fun fillTranslateAnchor(fillTranslateAnchor: FillTranslateAnchor): FillLayer

Controls the frame of reference for fill-translate.

fillTranslateTransition
Link copied to clipboard
open override fun fillTranslateTransition(options: StyleTransition): FillLayer

Set the FillTranslate property transition options

open override fun fillTranslateTransition(block: StyleTransition.Builder.() -> Unit): FillLayer
filter
Link copied to clipboard
open override 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
open override 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
open override 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
open override 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
open override fun visibility(visibility: Visibility): FillLayer

Whether this layer is displayed.

Properties

fillAntialias
Link copied to clipboard
val fillAntialias: Boolean?

Whether or not the fill should be antialiased.

fillAntialiasAsExpression
Link copied to clipboard
val fillAntialiasAsExpression: Expression?

Whether or not the fill should be antialiased.

fillColor
Link copied to clipboard
val fillColor: String?

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.

fillColorAsColorInt
Link copied to clipboard
val fillColorAsColorInt: Int?

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.

fillColorAsExpression
Link copied to clipboard
val fillColorAsExpression: Expression?

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
val fillColorTransition: StyleTransition?

Transition options for FillColor.

fillOpacity
Link copied to clipboard
val fillOpacity: Double?

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.

fillOpacityAsExpression
Link copied to clipboard
val fillOpacityAsExpression: Expression?

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
val fillOpacityTransition: StyleTransition?

Transition options for FillOpacity.

fillOutlineColor
Link copied to clipboard
val fillOutlineColor: String?

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

fillOutlineColorAsColorInt
Link copied to clipboard
val fillOutlineColorAsColorInt: Int?

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

fillOutlineColorAsExpression
Link copied to clipboard
val fillOutlineColorAsExpression: Expression?

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

fillOutlineColorTransition
Link copied to clipboard
val fillOutlineColorTransition: StyleTransition?

Transition options for FillOutlineColor.

fillPattern
Link copied to clipboard
val fillPattern: String?

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.

fillPatternAsExpression
Link copied to clipboard
val fillPatternAsExpression: Expression?

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
val fillPatternTransition: StyleTransition?

Transition options for FillPattern.

fillSortKey
Link copied to clipboard
val fillSortKey: Double?

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

fillSortKeyAsExpression
Link copied to clipboard
val fillSortKeyAsExpression: Expression?

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
val fillTranslate: List<Double>?

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

fillTranslateAnchor
Link copied to clipboard
val fillTranslateAnchor: FillTranslateAnchor?

Controls the frame of reference for fill-translate.

fillTranslateAnchorAsExpression
Link copied to clipboard
val fillTranslateAnchorAsExpression: Expression?

Controls the frame of reference for fill-translate.

fillTranslateAsExpression
Link copied to clipboard
val fillTranslateAsExpression: Expression?

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

fillTranslateTransition
Link copied to clipboard
val fillTranslateTransition: StyleTransition?

Transition options for FillTranslate.

filter
Link copied to clipboard
val filter: Expression?

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

layerId
Link copied to clipboard
open override val layerId: String
maxZoom
Link copied to clipboard
open override val maxZoom: Double?

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
open override val minZoom: Double?

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

sourceId
Link copied to clipboard
val sourceId: String
sourceLayer
Link copied to clipboard
val sourceLayer: String?

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
open override val visibility: Visibility?

Whether this layer is displayed.