public class CustomGeometrySourceOptions
extends java.util.HashMap<java.lang.String,java.lang.Object>
Constructor and Description |
---|
CustomGeometrySourceOptions() |
Modifier and Type | Method and Description |
---|---|
CustomGeometrySourceOptions |
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).
|
CustomGeometrySourceOptions |
withClip(boolean clip)
If the data includes geometry outside the tile boundaries, setting this to true clips the geometry
to the tile boundaries.
|
CustomGeometrySourceOptions |
withMaxZoom(int maxZoom)
Maximum zoom level at which to create vector tiles (higher means greater detail at high zoom levels).
|
CustomGeometrySourceOptions |
withMinZoom(int minZoom)
Minimum zoom level at which to create vector tiles (lower means more field of view detail at low zoom levels).
|
CustomGeometrySourceOptions |
withTolerance(float tolerance)
Douglas-Peucker simplification tolerance (higher means simpler geometries and faster performance).
|
CustomGeometrySourceOptions |
withWrap(boolean wrap)
If the data includes wrapped coordinates, setting this to true unwraps the coordinates.
|
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 CustomGeometrySourceOptions withWrap(boolean wrap)
wrap
- defaults to false@NonNull public CustomGeometrySourceOptions withClip(boolean clip)
clip
- defaults to false@NonNull public CustomGeometrySourceOptions withMinZoom(int minZoom)
minZoom
- the minimum zoom - Defaults to 0.@NonNull public CustomGeometrySourceOptions withMaxZoom(int maxZoom)
maxZoom
- the maximum zoom - Defaults to 25.5@NonNull public CustomGeometrySourceOptions withBuffer(int buffer)
buffer
- the buffer size - Defaults to 128.@NonNull public CustomGeometrySourceOptions withTolerance(float tolerance)
tolerance
- the tolerance - Defaults to 0.375