but in the scene3d mode no problem
Welcome to the community If possible, can you please send me a sandcastle demo of what you have so far? Seeing your implementation would help me diagnose the issue. More information on your use case and intended application would also be helpful. What are your goals with this project?
-Sam
OK,Thinks.I found the cause of the problem.
Because of the attribute heightReference: HeightReference.CLAMP_TO_GROUND
.
JavaScript
_this.viewer.entities.add({
position: cartesian,
point: {
color: Color.RED,
pixelSize: 10
// heightReference: HeightReference.CLAMP_TO_GROUND
}
})
After annotation, you can draw normally in 2D mode.
1 Like
I am glad to hear that you found the issue! Thank you for sharing your solution with the community.
-Sam