-
Notifications
You must be signed in to change notification settings - Fork 3.6k
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
KML tours: processing KMLTourFlyTo #5997
Conversation
Conflicts: Examples/Sandbox/CodeSnippets/Imagery.js
Conflicts: Examples/Sandbox/CodeSnippets/Imagery.js Tools/jsdoc3/templates/default/tmpl/layout.tmpl
Conflicts: Apps/CesiumViewer/CesiumViewer.css Apps/CesiumViewer/index.html
Conflicts: Examples/Sandbox/CodeSnippets/Imagery.js Examples/Sandbox/Sandbox.js Examples/Sandbox/index.html
Conflicts: Apps/Sandcastle/Sandcastle.html Apps/Sandcastle/index.html
Fix ESLint errors in Cesiumjs.org merge
Updated the cesiumjs.org bing key
Update AGI logo for cesiumjs.org
Welcome to the Cesium community @jaforom! Can you please send in a Contributor License Agreement (CLA) so that we can review and merge this pull request?
I am a bot who helps you make Cesium awesome! Contributions to my configuration are welcome. 🌍 🌎 🌏 |
We now have a CLA from @jaforom. Thanks again for the contribution! |
Hi @jaforom, are you should your PR is using the right branch? It looks like you're attempting to merge the |
Dear Gabby,
You’re right. When I initiate the pull request I did it wrong, because it was my first PR and I didn’t know how to do it correctly.
Could you help me about changing the branch to set the right one? I don’t know how to do that. Or may I close it and create a new one by using a fork?
Regards
|
Maybe I must close this PR and leave #5998 as the right PR. |
The right one is #5998. |
Hi all,
I recorded a tour with Google Earth and then I tried to load it in my Cesium viewer. It went fine, but I noted that the pitch was wrong (the camera was always vertical). In my tour, I used several pitches.
When I found the code where the
KMLTourFlyTo
is processed, I found this code line, insideprocessLookAt
function:var hpr = new HeadingPitchRange(heading, tilt - 90.0, range);
This is wrong, because tilt must be in radians, so the correct line code will be:
var hpr = new HeadingPitchRange(heading, tilt - Cesium.Math.PI / 2, range);
The Cesium version is 1.39 and the bug is in line 156365.
I modified the line in CesiumUnminified/Cesium.js and then I loaded the KML again: the tour was right, using the different pitches I recorded in the tour.
Regards