zoom static method

double zoom(
  1. dynamic mapPx,
  2. dynamic worldPx,
  3. dynamic fraction
)

Implementation

static double zoom(mapPx, worldPx, fraction) {
  return math.log(mapPx / worldPx / fraction) / math.ln2;
}