public class GeoJsonOptions extends HashMap<String,Object>
GeoJsonSource
,
The online documentation,
Serialized FormAbstractMap.SimpleEntry<K,V>, AbstractMap.SimpleImmutableEntry<K,V>
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 |
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
equals, hashCode, toString
public GeoJsonOptions withMinZoom(int minZoom)
minZoom
- the minimum zoom - Defaults to 0.public GeoJsonOptions withMaxZoom(int maxZoom)
maxZoom
- the maximum zoom - Defaults to 25.5public GeoJsonOptions withBuffer(int buffer)
buffer
- the buffer size - Defaults to 128.public GeoJsonOptions withLineMetrics(boolean lineMetrics)
lineMetrics
- true to calculate line distance metrics.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© 2015–2018 Mapbox. All rights reserved.