Companion

object Companion

Static variables and methods.

Properties

defaultBuffer
Link copied to clipboard
val defaultBuffer: Long?

Size of the tile buffer on each side. A value of 0 produces no buffer. A value of 512 produces a buffer as wide as the tile itself. Larger values produce fewer rendering artifacts near tile edges and slower performance.

defaultCluster
Link copied to clipboard
val defaultCluster: Boolean?

If the data is a collection of point features, setting this to true clusters the points by radius into groups. Cluster groups become new Point features in the source with additional properties:

defaultClusterMaxZoom
Link copied to clipboard
val defaultClusterMaxZoom: Long?

Max zoom on which to cluster points if clustering is enabled. Defaults to one zoom less than maxzoom (so that last zoom features are not clustered). Clusters are re-evaluated at integer zoom levels so setting clusterMaxZoom to 14 means the clusters will be displayed until z15.

defaultClusterRadius
Link copied to clipboard
val defaultClusterRadius: Long?

Radius of each cluster if clustering is enabled. A value of 512 indicates a radius equal to the width of a tile.

defaultGenerateId
Link copied to clipboard
val defaultGenerateId: Boolean?

Whether to generate ids for the geojson features. When enabled, the feature.id property will be auto assigned based on its index in the features array, over-writing any previous values.

defaultLineMetrics
Link copied to clipboard
val defaultLineMetrics: Boolean?

Whether to calculate line distance metrics. This is required for line layers that specify line-gradient values.

defaultMaxzoom
Link copied to clipboard
val defaultMaxzoom: Long?

Maximum zoom level at which to create vector tiles (higher means greater detail at high zoom levels).

defaultPrefetchZoomDelta
Link copied to clipboard
val defaultPrefetchZoomDelta: Long?

When loading a map, if PrefetchZoomDelta is set to any number greater than 0, the map will first request a tile at zoom level lower than zoom - delta, but so that the zoom level is multiple of delta, in an attempt to display a full map at lower resolution as quick as possible. It will get clamped at the tile source minimum zoom. The default delta is 4.

defaultTolerance
Link copied to clipboard
val defaultTolerance: Double?

Douglas-Peucker simplification tolerance (higher means simpler geometries and faster performance).