getGeoJsonClusterLeaves method

Future<FeatureExtensionValue> getGeoJsonClusterLeaves(
  1. String sourceIdentifier,
  2. Map<String?, Object?> cluster,
  3. int? limit,
  4. int? offset,
)

Returns the leaves (original points) of a cluster from a GeoJSON source.

cluster is a cluster feature with a cluster_id property. limit is the maximum number of leaves to return and defaults to 10. offset is the number of leaves to skip, for pagination, and defaults to 0. The leaves are in FeatureExtensionValue.featureCollection.

Completes with an error if the source does not exist. If the source is not a clustered GeoJSON source, or cluster is not a cluster of it, the result has no value.

Implementation

Future<FeatureExtensionValue> getGeoJsonClusterLeaves(
  String sourceIdentifier,
  Map<String?, Object?> cluster,
  int? limit,
  int? offset,
) => _impl.getGeoJsonClusterLeaves(sourceIdentifier, cluster, limit, offset);