Function limitCameraToBoundingSphere
- limitCameraToBoundingSphere(camera, boundingSphere, ratio): (() => void)
Parameters
- camera: Camera
- boundingSphere: BoundingSphere
- ratio: ((height: number) => number)
- (height): number
Returns number
Returns (() => void)
Constrain the camera so that it stays close to the bounding sphere of the map extent. Near the ground the allowed distance is shorter.