CesiumGS/cesium
Auf GitHub ansehenPrimitive with heightReference have a wrong positioning in 2D mode
Open
#12.531 geöffnet am 20. März 2025
good first issueonrampingtype - bug
Repository-Metriken
- Stars
- (11.758 Stars)
- PR-Merge-Metriken
- (Durchschn. Merge 26T 3h) (26 gemergte PRs in 30 T)
Beschreibung
What happened?
Hello!
I use Cesium version 1.127.0. When a primitive has a heightReference other than NONE, its position on map is wrong in 2D mode. In 3D or without the heightReference, the primitive is placed properly.
If the primitive is displayed at lattitude longitude [0, 0], it is correctly placed.
Thank you for your help!
Sandcastle with option to add a point with a heightReference set to CLAMP_TO_GROUND
Reproduction steps
- Add two primitives (point or billboard) with and without a heightReference different than NONE
- Set the map in 2D mode
- The two primitives are not placed at the same position on map
Sandcastle example
Environment
Browser: Chrome and Edge CesiumJS Version: 1.127.0 Operating System: Window 10 and 11