dynamic billboard

Hello All,

I want to add to a billboard collection billboards with time-dependent positions.

But with dynamic billboard i am having an issue as given below:

of what i have understood so far is that we can not use BillboardCollection for dynamic data as given in the below link:

https://groups.google.com/forum/#!topic/cesium-dev/L5OYZarTVBY

and so we need to use " new Cesium.DynamicBillboard();" and upload the generated object to CZMLdatasource, as given below:

try {

i have tried Cesium.DynamicBillboard inplace of new Cesium.DynamicBillboard() but in vain, as that also has been deprecated in Cesium-1.2 and Cesium-1.4.

Cesium.DynamicBillboard is undefined is what it says.

i could not find DynamicBillboard,DynamicObject, DynamicLabel in cesium API also

could you please suggest me the alternatives for producing dynamic billboard.

it would be great if you could provide us the sample code snippet for the alternative methods for the above deprecated ones.

thanks and regards,

chandrika

var czmlDS = new Cesium.CzmlDataSource();
var clr = new Cesium.Color(1, 0.5, 0, 1);
var transClr = new Cesium.Color(clr.red, clr.green, clr.blue, .8);
var whiteClr = new Cesium.Color(1, 1, 1, 1);
// DynObj
for (var i = 0; i < vehicles.length; i++) {
var dyo = czmlDS.getDynamicObjectCollection().getOrCreateObject(vehicles[i][0].otherData[0]);
// DynLabel
var dyl = new Cesium.DynamicLabel();
dyl.fillColor = ezGetTICColor(vehicles[i], startDate, hoursDuration, clr, whiteClr);
dyl.font = new Cesium.ConstantProperty(‘18px Tahoma’);
dyl.outlineColor = new Cesium.ConstantProperty(transClr);
dyl.pixelOffset = new Cesium.ConstantProperty(new Cesium.Cartesian2(30, 10));
dyl.style = new Cesium.ConstantProperty(Cesium.LabelStyle.FILL_AND_OUTLINE);
dyl.text = ezGetTICText(vehicles[i], startDate);
dyl.translucencyByDistance = new Cesium.ConstantProperty(new Cesium.NearFarScalar(1.5e5, 1.0, 1.5e6, 0.8));
dyo.label = dyl;
// DynBill
var dyb = new Cesium.DynamicBillboard();
dyb.image = new Cesium.ConstantProperty(’…/img/GroundVehicle.png’);
dyb.scale = new Cesium.ConstantProperty(1);
dyo.billboard = dyb;
//DynPos
dyo.position = ezGetSPosProp(vehicles[i], startDate, hoursDuration);
}
//
viewer.dataSources.add(czmlDS);
}

Hello,

have found the alternative for the below code snippet as given below:

  • DynamicBillboard -> BillboardGraphics
  • DynamicBillboardVisualizer -> BillboardVisualizer
  • CompositeDynamicObjectCollection -> CompositeEntityCollection
  • DynamicClock -> DataSourceClock
  • DynamicEllipse -> EllipseGraphics
  • DynamicEllipsoid -> EllipsoidGraphics
  • DynamicObject -> Entity
  • DynamicObjectCollection -> EntityCollection
  • DynamicObjectView -> EntityView
  • DynamicLabel -> LabelGraphics
  • DynamicLabelVisualizer -> LabelVisualizer
  • DynamicModel -> ModelGraphics
  • DynamicModelVisualizer -> ModelVisualizer
  • DynamicPath -> PathGraphics
  • DynamicPathVisualizer -> PathVisualizer
  • DynamicPoint -> PointGraphics
  • DynamicPointVisualizer -> PointVisualizer
    But it would be great if u could provide me the scenario of using dataSourceClock , code snippet would be great for the same.

thanks and regards,

chandrika