clusterMinPoints property

Future<double?> get clusterMinPoints

Minimum number of points necessary to form a cluster if clustering is enabled. Defaults to 2.

Implementation

Future<double?> get clusterMinPoints async {
  final localStyle = style;
  if (localStyle == null) return null;
  final raw = (await localStyle.getStyleSourceProperty(
    id,
    "clusterMinPoints",
  )).value;
  if (raw == null) return null;
  return (raw as num).toDouble();
}