tolerance property

Future<double?> get tolerance

Douglas-Peucker simplification tolerance (higher means simpler geometries and faster performance). Default value: 0.375.

Implementation

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