All files / geography/maps/src mapZoom.ts

33.33% Statements 3/9
25% Branches 2/8
100% Functions 1/1
33.33% Lines 3/9

Press n or j to go to the next uncovered block, b, p or k for the previous block.

1 2 3 4 5 6 7 8 9 10 11 12 13  550x   1x           549x      
export function getNearbyMapZoom(radius: number): number {
  switch (radius) {
    case 250: return 19;
    case 500: return 18;
    case 750: return 17;
    case 1500: return 15.5;
    case 2000: return 15;
    case 2500: return 14.5;
    case 5000: return 13.5;
    default: return 16;
  }
}