maxZoomLevel property Null safety

double maxZoomLevel

Maximum zoom level of the map layer.

Defaults to 15.

However, for MapTileLayer, the maxZoomLevel may slightly vary depends on the providers. Check the respective official website of the map tile providers to know about the maximum zoom level it supports.


double get maxZoomLevel => _maxZoomLevel;
void maxZoomLevel=(double value)


set maxZoomLevel(double value) {
  if (_maxZoomLevel == value) {
  _maxZoomLevel = value;
  zoomLevel = _zoomLevel.clamp(_minZoomLevel, _maxZoomLevel);