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.

Implementation

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

Implementation

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