diff options
| author | godosa <godosa@godosa.eu> | 2026-10-07 00:14:38 +0200 |
|---|---|---|
| committer | godosa <godosa@godosa.eu> | 2026-10-07 00:14:38 +0200 |
| commit | 3443c1c65e9f1753e1e656b35d08416c1fa298f2 (patch) | |
| tree | 4e43236f460145a4d75d1b4616dcb7aa6ef08f51 /viewer/js/limits.js | |
| download | worldmap-viewer-3443c1c65e9f1753e1e656b35d08416c1fa298f2.tar.gz worldmap-viewer-3443c1c65e9f1753e1e656b35d08416c1fa298f2.zip | |
worldmap-viewer: initial public history
Diffstat (limited to 'viewer/js/limits.js')
| -rw-r--r-- | viewer/js/limits.js | 9 |
1 files changed, 9 insertions, 0 deletions
diff --git a/viewer/js/limits.js b/viewer/js/limits.js new file mode 100644 index 0000000..60ceb74 --- /dev/null +++ b/viewer/js/limits.js @@ -0,0 +1,9 @@ +// limits.js — view limits shared by the views and the URL state (pure) +import { R_KM } from './geo.js'; + +export const CLEARANCE_M = 20; // the globe camera stays this far above the ground +export const MIN_ALT = CLEARANCE_M / (R_KM * 1000); // closest range in planet radii (street level) +export const MAX_ALT = 5; +export const MAX_ZOOM = 20000; +export const MAX_PITCH = 80; // degrees from straight down +export const MAX_EXAG = 5; // 3D terrain exaggeration |
