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

can not move the viewer when you mouse on the label. #8326

Closed
hemincan opened this issue Oct 28, 2019 · 3 comments
Closed

can not move the viewer when you mouse on the label. #8326

hemincan opened this issue Oct 28, 2019 · 3 comments

Comments

@hemincan
Copy link

when the label entity set showBackground=true, and heightReference=Cesium.HeightReference.CLAMP_TO_GROUND,can not move the viewer when you mouse on the label.

viewer.entities.add({
position : Cesium.Cartesian3.fromDegrees(86.925145, 27.9822222),
label : {
showBackground: true,
text : '565656',
heightReference: Cesium.HeightReference.CLAMP_TO_GROUND,
disableDepthTestDistance: Number.POSITIVE_INFINITY,
}
});

sandcastle example

@mramato
Copy link
Contributor

mramato commented Oct 28, 2019

Thanks for the sample code and bug report @hemincan. @hpinkos is this the same root cause as #6840. If so we should close this and link to it from there.

The issue is disableDepthTestDistance: Number.POSITIVE_INFINITY. You can get the same behavior by setting viewer.scene.globe.depthTestAgainstTerrain = false; and removing disableDepthTestDistance altogether. Of course that means you won't be depth testing anything against terrain, so it depends on your use case.

@hpinkos
Copy link
Contributor

hpinkos commented Oct 28, 2019

yep, this is the same as #6840

@hpinkos hpinkos closed this as completed Oct 28, 2019
@hemincan
Copy link
Author

@mramato Thanks for your help.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants