public class GeoJsonOptions
extends java.util.HashMap<java.lang.String,java.lang.Object>
GeoJsonSource,
The online documentation,
Serialized Form| Constructor and Description |
|---|
GeoJsonOptions() |
| Modifier and Type | Method and Description |
|---|---|
GeoJsonOptions |
withBuffer(int buffer)
Tile buffer size on each side (measured in 1/512ths of a tile; higher means fewer rendering artifacts near tile
edges but slower performance).
|
GeoJsonOptions |
withCluster(boolean cluster)
If the data is a collection of point features, setting this to true clusters the points by radius into groups.
|
GeoJsonOptions |
withClusterMaxZoom(int clusterMaxZoom)
Max zoom to cluster points on.
|
GeoJsonOptions |
withClusterProperty(java.lang.String propertyName,
Expression operatorExpr,
Expression mapExpr)
An object defining custom properties on the generated clusters if clustering is enabled,
aggregating values from clustered points.
|
GeoJsonOptions |
withClusterRadius(int clusterRadius)
Radius of each cluster when clustering points, measured in 1/512ths of a tile.
|
GeoJsonOptions |
withLineMetrics(boolean lineMetrics)
Initialises whether to calculate line distance metrics.
|
GeoJsonOptions |
withMaxZoom(int maxZoom)
Maximum zoom level at which to create vector tiles (higher means greater detail at high zoom levels).
|
GeoJsonOptions |
withMinZoom(int minZoom)
Minimum zoom level at which to create vector tiles (lower means more field of view detail at low zoom levels).
|
GeoJsonOptions |
withTolerance(float tolerance)
Douglas-Peucker simplification tolerance (higher means simpler geometries and faster performance).
|
clear, clone, compute, computeIfAbsent, computeIfPresent, containsKey, containsValue, entrySet, forEach, get, getOrDefault, isEmpty, keySet, merge, put, putAll, putIfAbsent, remove, remove, replace, replace, replaceAll, size, values@NonNull public GeoJsonOptions withMinZoom(int minZoom)
minZoom - the minimum zoom - Defaults to 0.@NonNull public GeoJsonOptions withMaxZoom(int maxZoom)
maxZoom - the maximum zoom - Defaults to 25.5@NonNull public GeoJsonOptions withBuffer(int buffer)
buffer - the buffer size - Defaults to 128.@NonNull public GeoJsonOptions withLineMetrics(boolean lineMetrics)
lineMetrics - true to calculate line distance metrics.@NonNull public GeoJsonOptions withTolerance(float tolerance)
tolerance - the tolerance - Defaults to 0.375@NonNull public GeoJsonOptions withCluster(boolean cluster)
cluster - cluster? - Defaults to false@NonNull public GeoJsonOptions withClusterMaxZoom(int clusterMaxZoom)
clusterMaxZoom - clusterMaxZoom cluster maximum zoom - Defaults to one zoom less than maxzoom (so that last
zoom features are not clustered)@NonNull public GeoJsonOptions withClusterRadius(int clusterRadius)
clusterRadius - cluster radius - Defaults to 50@NonNull public GeoJsonOptions withClusterProperty(java.lang.String propertyName, Expression operatorExpr, Expression mapExpr)
propertyName - name of the propertyoperatorExpr - operatorExpr 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. It can either be
a literal with single operator, or be a valid expressionmapExpr - map expression produces the value of a single point, it shall be a valid expression