getGeoJsonClusterChildren method

Future<FeatureExtensionValue> getGeoJsonClusterChildren(
  1. String sourceIdentifier,
  2. Map<String?, Object?> cluster
)

Returns the children of a cluster from a GeoJSON source: the clusters and points that it splits into on the next zoom level.

cluster is a cluster feature with a cluster_id property. The children 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> getGeoJsonClusterChildren(
  String sourceIdentifier,
  Map<String?, Object?> cluster,
) => _impl.getGeoJsonClusterChildren(sourceIdentifier, cluster);