Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Allow configuration of a camera angle for preset views in the Cesium Viewfinder #2410

Open
robyngit opened this issue May 9, 2024 · 0 comments
Labels
cesium enhancement portals Anything related to portals

Comments

@robyngit
Copy link
Member

robyngit commented May 9, 2024

The new viewfinder in Cesium maps allows configuring areas of interest to highlight. The location for each "view" is set with a lat, lon, and height, but it would be nice to allow setting a heading, pitch, & roll like we do for the "home" position, see

/**
* Coordinates that describe a camera position for Cesium. Requires at
* least a longitude and latitude.
* @typedef {Object} MapConfig#CameraPosition
* @property {number} longitude - Longitude of the central home point
* @property {number} latitude - Latitude of the central home point
* @property {number} [height] - Height above sea level (meters)
* @property {number} [heading] - The rotation about the negative z axis
* (degrees)
* @property {number} [pitch] - The rotation about the negative y axis
* (degrees)
* @property {number} [roll] - The rotation about the positive x axis
* (degrees)
*
* @example
* {
* longitude: -119.8489,
* latitude: 34.4140
* }
*
* @example
* {
* longitude: -65,
* latitude: 56,
* height: 10000000,
* heading: 1,
* pitch: -90,
* roll: 0
* }
*/

This feature would be particularly useful for zooming into 3D datasets, e.g:
image

@robyngit robyngit added enhancement portals Anything related to portals cesium labels May 9, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
cesium enhancement portals Anything related to portals
Projects
None yet
Development

No branches or pull requests

1 participant