FillLayer

A filled polygon with an optional stroked border.

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

See also

<a href="https://www.mapbox.com/mapbox-gl-style-spec/#layers-fill">The online documentation</a>

Parameters

layerId

the ID of the layer

sourceId

the ID of the source

Constructors

FillLayer
Link copied to clipboard

the ID of the layer

fun FillLayer(layerId: String, sourceId: String)

Types

Companion
Link copied to clipboard

Static variables and methods.

object Companion

Functions

bindTo
Link copied to clipboard

Bind the layer to the Style.

override fun bindTo(delegate: StyleManagerInterface)

Bind the layer to the map controller.

open override fun bindTo(delegate: StyleManagerInterface, position: LayerPosition?)
equals
Link copied to clipboard
open operator override fun equals(other: Any?): Boolean
fillAntialias
Link copied to clipboard

Set the FillAntialias property

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

Set the FillColor property

open override fun fillColor(fillColor: Expression): FillLayer
open override fun fillColor(fillColor: String): FillLayer

Set the FillColor property.

open override fun fillColor(fillColor: Int): FillLayer
fillColorTransition
Link copied to clipboard

Set the FillColor property transition options

open override fun fillColorTransition(options: StyleTransition): FillLayer
open override fun fillColorTransition(block: StyleTransition.Builder.() -> Unit): FillLayer
fillOpacity
Link copied to clipboard

Set the FillOpacity property

open override fun fillOpacity(fillOpacity: Expression): FillLayer
open override fun fillOpacity(fillOpacity: Double): FillLayer
fillOpacityTransition
Link copied to clipboard

Set the FillOpacity property transition options

open override fun fillOpacityTransition(options: StyleTransition): FillLayer
open override fun fillOpacityTransition(block: StyleTransition.Builder.() -> Unit): FillLayer
fillOutlineColor
Link copied to clipboard

Set the FillOutlineColor property

open override fun fillOutlineColor(fillOutlineColor: Expression): FillLayer
open override fun fillOutlineColor(fillOutlineColor: String): FillLayer

Set the FillOutlineColor property.

open override fun fillOutlineColor(fillOutlineColor: Int): FillLayer
fillOutlineColorTransition
Link copied to clipboard

Set the FillOutlineColor property transition options

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

Set the FillPattern property

open override fun fillPattern(fillPattern: Expression): FillLayer
open override fun fillPattern(fillPattern: String): FillLayer
fillPatternTransition
Link copied to clipboard

Set the FillPattern property transition options

open override fun fillPatternTransition(options: StyleTransition): FillLayer
open override fun fillPatternTransition(block: StyleTransition.Builder.() -> Unit): FillLayer
fillSortKey
Link copied to clipboard

Set the FillSortKey property

open override fun fillSortKey(fillSortKey: Expression): FillLayer
open override fun fillSortKey(fillSortKey: Double): FillLayer
fillTranslate
Link copied to clipboard

Set the FillTranslate property

open override fun fillTranslate(fillTranslate: Expression): FillLayer
open override fun fillTranslate(fillTranslate: List<Double>): FillLayer
fillTranslateAnchor
Link copied to clipboard

Set the FillTranslateAnchor property

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

Set the FillTranslate property transition options

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

Set the filter property

open override fun filter(filter: Expression): FillLayer
getCachedLayerProperties
Link copied to clipboard
override fun getCachedLayerProperties(): Value
hashCode
Link copied to clipboard
open override fun hashCode(): Int
maxZoom
Link copied to clipboard

Set the maxzoom property

open override fun maxZoom(maxZoom: Double): FillLayer
minZoom
Link copied to clipboard

Set the minzoom property

open override fun minZoom(minZoom: Double): FillLayer
sourceLayer
Link copied to clipboard

Set the sourceLayer property

open override fun sourceLayer(sourceLayer: String): FillLayer
toString
Link copied to clipboard
open override fun toString(): String
updateProperty
Link copied to clipboard
override fun updateProperty(property: PropertyValue<*>)
visibility
Link copied to clipboard

Set the Visibility property

open override fun visibility(visibility: Visibility): FillLayer

Properties

fillAntialias
Link copied to clipboard

Whether or not the fill should be antialiased.

val fillAntialias: Boolean?
fillAntialiasAsExpression
Link copied to clipboard

This is an Expression representation of "fill-antialias".

Whether or not the fill should be antialiased.

val fillAntialiasAsExpression: Expression?
fillColor
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.

val fillColor: String?
fillColorAsColorInt
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.

val fillColorAsColorInt: Int?
fillColorAsExpression
Link copied to clipboard

This is an Expression representation of "fill-color".

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.

val fillColorAsExpression: Expression?
fillColorTransition
Link copied to clipboard

Transition options for FillColor.

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

val fillOpacity: Double?
fillOpacityAsExpression
Link copied to clipboard

This is an Expression representation of "fill-opacity".

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.

val fillOpacityAsExpression: Expression?
fillOpacityTransition
Link copied to clipboard

Transition options for FillOpacity.

val fillOpacityTransition: StyleTransition?
fillOutlineColor
Link copied to clipboard

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

val fillOutlineColor: String?
fillOutlineColorAsColorInt
Link copied to clipboard

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

val fillOutlineColorAsColorInt: Int?
fillOutlineColorAsExpression
Link copied to clipboard

This is an Expression representation of "fill-outline-color".

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

val fillOutlineColorAsExpression: Expression?
fillOutlineColorTransition
Link copied to clipboard

Transition options for FillOutlineColor.

val fillOutlineColorTransition: StyleTransition?
fillPattern
Link copied to clipboard

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.

val fillPattern: String?
fillPatternAsExpression
Link copied to clipboard

This is an Expression representation of "fill-pattern".

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.

val fillPatternAsExpression: Expression?
fillPatternTransition
Link copied to clipboard

Transition options for FillPattern.

val fillPatternTransition: StyleTransition?
fillSortKey
Link copied to clipboard

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

val fillSortKey: Double?
fillSortKeyAsExpression
Link copied to clipboard

This is an Expression representation of "fill-sort-key".

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

val fillSortKeyAsExpression: Expression?
fillTranslate
Link copied to clipboard

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

val fillTranslate: List<Double>?
fillTranslateAnchor
Link copied to clipboard

Controls the frame of reference for fill-translate.

val fillTranslateAnchor: FillTranslateAnchor?
fillTranslateAnchorAsExpression
Link copied to clipboard

This is an Expression representation of "fill-translate-anchor".

Controls the frame of reference for fill-translate.

val fillTranslateAnchorAsExpression: Expression?
fillTranslateAsExpression
Link copied to clipboard

This is an Expression representation of "fill-translate".

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

val fillTranslateAsExpression: Expression?
fillTranslateTransition
Link copied to clipboard

Transition options for FillTranslate.

val fillTranslateTransition: StyleTransition?
filter
Link copied to clipboard

A expression specifying conditions on source features. Only features that match the filter are displayed. Zoom expressions in filters are only evaluated at integer zoom levels. The feature-state expression is not supported in filter expressions.

val filter: Expression?
layerId
Link copied to clipboard

the ID of the layer

open override val layerId: String
layerProperties
Link copied to clipboard

Properties of this layer.

override val layerProperties: HashMap<String, PropertyValue<*>>
maxZoom
Link copied to clipboard

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

Range: minimum: 0 maximum: 24

open override val maxZoom: Double?
minZoom
Link copied to clipboard

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

Range: minimum: 0 maximum: 24

open override val minZoom: Double?
sourceId
Link copied to clipboard

the ID of the source

val sourceId: String
sourceLayer
Link copied to clipboard

Source layer.

val sourceLayer: String?
visibility
Link copied to clipboard

Visibility of the layer.

open override val visibility: Visibility?