Skip to content
This repository has been archived by the owner on Mar 8, 2023. It is now read-only.

Commit

Permalink
MAPSJS-2660: Add MapViewUtils description.
Browse files Browse the repository at this point in the history
Signed-off-by: Andres Mandado <[email protected]>
  • Loading branch information
atomicsulfate committed Aug 31, 2021
1 parent 61148dc commit cf9ee56
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions @here/harp-mapview/lib/Utils.ts
Original file line number Diff line number Diff line change
Expand Up @@ -96,6 +96,9 @@ function snapToCeilingZoomLevel(zoomLevel: number) {
return ceiling - zoomLevel < eps ? ceiling : zoomLevel;
}

/**
* MapView utilities: View transformations, camera setup, view bounds computation...
*/
export namespace MapViewUtils {
export const MAX_TILT_DEG = 89;
export const MAX_TILT_RAD = MAX_TILT_DEG * THREE.MathUtils.DEG2RAD;
Expand Down

0 comments on commit cf9ee56

Please sign in to comment.