GeoJsonOptions
Parameters
Minimum zoom level at which to create vector tiles (lower means more field of view detail at low zoom levels).
Maximum zoom level at which to create vector tiles (higher means greater detail at high zoom levels).
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 at the cost of slower performance.
Douglas-Peucker simplification tolerance (higher means simpler geometries and faster performance).
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: * cluster
: Is true
if the point is a cluster * cluster_id
: A unique id for the cluster to be used in conjunction with the cluster inspection methods. (TODO which are not implemented yet on GeoJsonSource - #80) * point_count
: Number of original points grouped into this cluster * point_count_abbreviated
: An abbreviated point count
Radius of each cluster when clustering points, measured in 1/512ths of a tile. I.e. a value of 512 indicates a radius equal to the width of a tile.
Max zoom to cluster points on. Clusters are re-evaluated at integer zoom levels. So, setting the max zoom to 14 means that the clusters will still be displayed on zoom 14.9.
Note: Not supported on native platforms, see maplibre-native#261
Minimum number of points necessary to form a cluster if clustering is enabled.
A map defining custom properties on the generated clusters if clustering is enabled, aggregating values from clustered points. The keys are the property names, the values are expressions.
TODO examples missing, see https://maplibre.org/maplibre-style-spec/sources/#clusterproperties
Whether to calculate line distance metrics. This is required for LineLayers that specify a gradient
.