Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Error in adding billboard with different alignedAxis to the same BillboardCollection #3318

Closed
hpinkos opened this issue Dec 9, 2015 · 2 comments

Comments

@hpinkos
Copy link
Contributor

hpinkos commented Dec 9, 2015

reported here: https://groups.google.com/forum/#!topic/cesium-dev/e4sSCMrEmOw

var viewer = new Cesium.Viewer('cesiumContainer');
var pinBuilder = new Cesium.PinBuilder();
viewer.entities.add({
    position : Cesium.Cartesian3.fromDegrees(-75.59777, 40.03883),
    billboard :{
        image : pinBuilder.fromColor(Cesium.Color.ROYALBLUE, 48).toDataURL(),
        verticalOrigin : Cesium.VerticalOrigin.BOTTOM,
        rotation: 0.0,
        alignedAxis: Cesium.Cartesian3.ZERO // should point to top of the screen
    }
});
viewer.entities.add({
    position : Cesium.Cartesian3.fromDegrees(-93.0, 37.0),
    billboard : {
        image : pinBuilder.fromColor(Cesium.Color.RED, 48).toDataURL(),
        verticalOrigin : Cesium.VerticalOrigin.BOTTOM,
        rotation: 0.0,
        alignedAxis: Cesium.Cartesian3.UNIT_Z // should point North
    }
});
@hpinkos
Copy link
Contributor Author

hpinkos commented Dec 9, 2015

Are all billboards in an EntityCollection being added to the same BillboardCollection? If so, that's the cause of the problem. The billboards behave as expected when each one is added to it's own BillboardCollection.

@mramato
Copy link
Contributor

mramato commented Dec 9, 2015

Yes, they all go in the same collection, which should be supported. So this is a BillboardCollection bug.

@hpinkos hpinkos changed the title Error in adding billboard entities with different alignedAxis Error in adding billboard with different alignedAxis to the same BillboardCollection Dec 15, 2015
@hpinkos hpinkos closed this as completed Mar 15, 2016
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

2 participants