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