public class GeoJsonOptions
extends java.util.HashMap<java.lang.String,java.lang.Object>
GeoJsonSource
,
The online documentation,
Serialized FormConstructor 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 |
withClusterRadius(int clusterRadius)
Radius of each cluster when clustering points, measured in 1/512ths of a tile.
|
GeoJsonOptions |
withMaxZoom(int maxZoom)
Maximum zoom level at which to create vector tiles (higher means greater detail at high 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
public GeoJsonOptions withMaxZoom(int maxZoom)
maxZoom
- the maximum zoom - Defaults to 18.public GeoJsonOptions withBuffer(int buffer)
buffer
- the buffer size - Defaults to 128.public GeoJsonOptions withTolerance(float tolerance)
tolerance
- the tolerance - Defaults to 0.375public GeoJsonOptions withCluster(boolean cluster)
cluster
- cluster? - Defaults to falsepublic GeoJsonOptions withClusterMaxZoom(int clusterMaxZoom)
clusterMaxZoom
- clusterMaxZoom cluster maximum zoom - Defaults to one zoom less than maxzoom (so that last
zoom features are not clustered)public GeoJsonOptions withClusterRadius(int clusterRadius)
clusterRadius
- cluster radius - Defaults to 50