minzoom property

Future<double?> get minzoom

Minimum zoom level for which tiles are available, as in the TileJSON spec. Default value: 0.

Implementation

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