I’m trying to set the scale of a picked element (a billboard) which is added to the scene through CZMLDataSource.
I successfully picked the primitive in the MOUSE_MOVE event and then set it’s scale like this:
var scenePick = scn.pick(movement.endPosition);
var pickedObject = scenePick.primitive;
pickedObject.scale = pickedObject.scale*1.4;
, but this had no effect on the billboard.
I figured out that the scale was being “reset” at the update function of the BillboardVisualizer.js. By commenting the line:
//billboard.scale = Property.getValueOrDefault(billboardGraphics._scale, time, defaultScale);
the billboard scale effect is now visible.
If I understand correctly the “reset” of these properties in the update function is to maintain the values defined at the CZML, is this correct?
My question is if there’s some way to get this done by not messing with the Cesium code.