getZoomLevel static method

double getZoomLevel(
  1. double scale
)

Returns a zoom level for given scale value.

Implementation

static double getZoomLevel(double scale) {
  return (log(scale) / log(2)) + 1;
}