(lat)
| 37 | ZOOM_MAX = 18 |
| 38 | |
| 39 | def latRad(lat): |
| 40 | sin = np.sin(lat * np.pi / 180) |
| 41 | radX2 = np.log((1 + sin) / (1 - sin)) / 2 |
| 42 | return max(min(radX2, np.pi), -np.pi) / 2 |
| 43 | |
| 44 | def zoom(mapPx, worldPx, fraction): |
| 45 | return 0.95 * np.log(mapPx / worldPx / fraction) / np.log(2) |
no outgoing calls
no test coverage detected