Package-level declarations

Types

Link copied to clipboard
data class ClusterProperties(val value: Value)

An object defining custom properties on the generated clusters if clustering is enabled, aggregating values from clustered points. Has the form {"property_name": [operator, map_expression]}. operator is any expression function that accepts at least 2 operands (e.g. "+" or "max") — it accumulates the property value from clusters/points the cluster contains; map_expression produces the value of a single point. Example: {"sum": ["+", ["get", "scalerank"]]}. For more advanced use cases, in place of operator, you can use a custom reduce expression that references a special ["accumulated"] value, e.g.: {"sum": [["+", ["accumulated"], ["get", "sum"]], ["get", "scalerank"]]}

Link copied to clipboard
data class PromoteIdValue(val value: Value)

A property to use as a feature id (for feature state). Either a property name, or an object of the form {<sourceLayer>: <propertyName>}:

Link copied to clipboard
data class RasterLayers(val value: Value)

Contains the description of the raster data layers and the bands contained within the tiles.

Link copied to clipboard
abstract class SourceState

The base class for SourceStates, which handles the attach/detach from the layer, and updating Source properties.

Link copied to clipboard
data class TileCacheBudget(val value: Value)

This property defines a source-specific resource budget, either in tile units or in megabytes. Whenever the tile cache goes over the defined limit, the least recently used tile will be evicted from the in-memory cache. Note that the current implementation does not take into account resources allocated by the visible tiles.