CesiumGS / cesium

An open-source JavaScript library for world-class 3D globes and maps :earth_americas:
https://cesium.com/cesiumjs/
Apache License 2.0
13k stars 3.5k forks source link

Wrong camera position in 2D mode #12318

Open a-milenin opened 2 days ago

a-milenin commented 2 days ago

What happened?

Camera object return wrong position in 2D mode

Reproduction steps

  1. Zoom In to some place
  2. Click "Pick camera position"
  3. Check that viewport and camera position is correct
  4. Switch to 2D mode
  5. Zoom to some place
  6. Click "Pick camera position"
  7. See wrong camera position

Sandcastle example

https://sandcastle.cesium.com/#c=fVPBbtswDP0Vwpc4QKCsO7pOMDQLsAEFNrTdevFFkZmUKC0ZEp2uK/LvU+zYCbIgF9skHx/foyzjbBDYEr6hhxlYfIMFBmoq9bvNpSPThgtnRZNFPxrfFrawj9qWRgdhVLosn5zjlfZ3jYiz6egnmVcwukKvoXaBhJwdTSAdw2wOH4UFMO3Yj6EKuzi8U6G6xtsjzKMRbTeM5xhlXFU3gnupDz0oPUCCQYtqw26FCpmpDo7KTjwArSEdaMedJujJ0UoUhWHvLD2U4KgigyEHsCbmDNaaA06O2UoLetKxcljmwrHz6u7+1/IEZZzzJdmIDdmR/gTgGuG48wzENxfyLem1EbvD127cbnPXeb/isj+OSR+SlRO7Nf1BfqS/UdHNp2GKuSDjYfl1qF9R+/zt+9PyHPhMpbxk8LkX375bC+0jmSR5kHfGed/3haraeYHGc6rUVLCqeb/U6aoxryjKhNAtACCfnrbmJW2BylmRnP3kRQKGdQixsm64tVwk83wa8f+1stPxEDc/tuhZv+9hLzfz+y6plMqnMbzcKd2tOWP+Bw

Environment

Browser: Chrome CesiumJS Version: 1.123 Operating System: Windows