The label is occluded by the polygonal area

TEST1 is a label generated using labelcollection and a polygon generated using primitive, where the label is occluded by the polygon; TEST2 uses one entity to generate both the label and the polygon, and the label is not occluded by the polygon; TEST3 uses one entity to generate the label and another entity to generate the polygon, and the label is not occluded. How can the occlusion issue in TEST1 be resolved?

Hi @Aoi, are the polygons clamped to ground? Can you share a Sandcastle link to this example?

See Labels clipping by earth for some possibly related discussion about occlusion of labels.

Hey @Aoi

The way I temporary got around this issue was to play around with
disableDepthTestDistance: LABEL_DEPTH_DISTANCE

passing in a value for the variable. I currently use 50000 but you might want something a bit more

Hopefully this gives you a bit more help

Cheers

1 Like