maxzoom property

Future<double?> get maxzoom

Maximum zoom level for which tiles are available, as in the TileJSON spec. Data from tiles at the maxzoom are used when displaying the map at higher zoom levels. Default value: 22.

Implementation

Future<double?> get maxzoom async {
  return _style?.getStyleSourceProperty(id, "maxzoom").then((value) {
    if (value.value != null) {
      return (value.value as num).toDouble();
    } else {
      return null;
    }
  });
}