double getScaledZoom(double fromZoom, double scale) { final zoom = fromZoom + (math.log(scale) / math.ln2); return limitZoom(zoom); }