buffer property

Future<double?> get buffer

Size of the tile buffer on each side. A value of 0 produces no buffer. A value of 512 produces a buffer as wide as the tile itself. Larger values produce fewer rendering artifacts near tile edges and slower performance. Default value: 128. Value range: 0, 512

Implementation

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