clusterRadius property

Future<double?> get clusterRadius

Radius of each cluster if clustering is enabled. A value of 512 indicates a radius equal to the width of a tile. Default value: 50. Minimum value: 0.

Implementation

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