getScale static method

double getScale(
  1. double zoomLevel
)

Returns a scale value for given zoom level.

Implementation

static double getScale(double zoomLevel) {
  return pow(2, zoomLevel - 1).toDouble();
}