Hello folks,
I have problems with the display of a label.
The creation works so far, but depending on the viewing angle, some places are illegible because it slips under the ground.
I created 2 label points here:
So you can see that the label “TEST TEST TEST” is not completely legible, at least in the middle.
If I zoom in now, it gets even worse:
If I zoom in even further, then the label has disappeared completely underground.
How can I make it readable in any position and angle and always in the foreground?
The dark red point here is a point with a pixel size of 20 (so that I can see something). Otherwise at 3 or 5 the point also disappears when zooming in and out. As is the case with the labels, I have the same problem with the point
viewer.entities.add({
position: Cesium.Cartesian3({x,y,z}),
label: {
text: 'Test TEST TEST',
scale: 1.0,
pixelOffset: new Cesium.Cartesian2(-120, 150),
horizontalOrigin: Cesium.HorizontalOrigin.CENTER,
verticalOrigin: Cesium.VerticalOrigin.TOP,
font: '32px Helvetica',
fillColor: Cesium.Color.YELLOW,
outlineColor: Cesium.Color.BLACK,
outlineWidth: 130,
style: Cesium.LabelStyle.FILL_AND_OUTLINE,
}
});
Here in the code I played around with the pixelOffset and outlineWidth. But that and the colors there didn’t do anything. As if these properties were not set at all.
I ask for help.