aboutsummaryrefslogtreecommitdiffziptar.gz
path: root/viewer/js/limits.js
blob: 60ceb74e5ba3f8cf98611b01326e6be666bc3803 (plain)
1
2
3
4
5
6
7
8
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