maxNativeZoom property

int get maxNativeZoom

Returns the maximum native zoom level for this map source. Beyond this level, tiles are upscaled from the max available.

Implementation

int get maxNativeZoom {
  switch (this) {
    case MapSource.openStreetMap:
      return 19;
    case MapSource.cartoVoyager:
    case MapSource.cartoDarkMatter:
    case MapSource.cartoPositron:
      return 20;
    case MapSource.esriWorldStreetMap:
      return 19;
    case MapSource.esriWorldImagery:
      return 17; // Esri satellite max native zoom is 17
    case MapSource.esriWorldTopo:
      return 18;
    case MapSource.openTopoMap:
      return 17; // OpenTopoMap max zoom is 17
    case MapSource.cyclOSM:
      return 18;
  }
}