tileSize property

Future<double?> get tileSize

The minimum visual size to display tiles for this layer. Only configurable for raster layers. Default value: 512. The unit of tileSize is in pixels.

Implementation

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