How to achieve label on stick ?

hi,

Can anyone advice how to achieve this type of label ?

The total label locations is about 40-50 max.

Also can it render based on a specific offset from the terrain level.

Looked on czml in sandcastle. not sure it’s the correct approach.

TIA.

Hi,

You’ll most likely need to offset the label by a pixel amount, which you can do by specifying the pixelOffset. For example, here’s a label offset from a point:

viewer.entities.add({

position : Cesium.Cartesian3.fromDegrees(-75.1641667, 39.9522222),

label : {

text : ‘Philadelphia’,

font : ‘16pt Helvetica’,

pixelOffset: new Cesium.Cartesian2(0, -16)

},

point: {

pixelSize: 5

}

});

``

You can style each label entity and add wither a point and a polyline, or a billboard (image) which looks like the pin.

Here’s an example using Cesium’s pin builder.

Thanks,

Gabby

Thanks Gabby. I give it a try.