1. A concise explanation of the problem you're experiencing.
When I add an entity to the Viewer's EntityCollection and use a Reference Property for the new entity's position, it changes (or ignores) the definition of the ellipsoid that I am trying to create.
2. A minimal code example. If you've found a bug, this helps us reproduce and repair it.
var availability = new Cesium.TimeIntervalCollection(<some TimeInterval>);
var position_ref = new Cesium.ReferenceProperty(viewer, 'otherId', ['position']);
viewer.entities.add({
id: 'Some Ellipsoid',
availability: availability,
position: position_ref,
ellipsoid: {
radii: new Cesium.Cartesian3(100, 200, 300),
material: Cesium.Color.RED.withAlpha(0.3),
outline: True
}
});
Then from EllipsoidGeometry.createGeometry() in CesiumUnminified/Cesium.js:
EllipsoidGeometry.createGeometry = function(ellipsoidGeometry) {
console.log(JSON.stringify(ellipsoidGeometry));
...
};
From the console log above, I would expect to see:
{"_radii":{"x":100,"y":200,"z":300},...}
But instead I see:
{"_radii":{"x":1,"y":1,"z":1},...}
The ellipsoid appears to be drawn with the correct radii, but why do I see the geometry definition like this?
If I instead use a fixed position instead of a position reference, the console log gives me what I expect. Why is that?
3. Context. Why do you need to do this? We might know a better way to accomplish your goal.
I need to use the geometry definition attributes from within the createGeometry function.
4. The Cesium version you're using, your operating system and browser.
Cesium 1.30 on Firefox 45.1.0 on Linux (yes I know, both are old; it takes moving heaven and earth to get updates in my work environment). Note that I have a few custom mods to my local Cesium, so if you can't reproduce this it's likely I simply broke something.