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

billboard height with sizeInMeters and VerticalOrigin.BOTTOM #5303

Closed
YousefED opened this issue May 10, 2017 · 3 comments
Closed

billboard height with sizeInMeters and VerticalOrigin.BOTTOM #5303

YousefED opened this issue May 10, 2017 · 3 comments

Comments

@YousefED
Copy link

Steps to reproduce:

  1. http://cesiumjs.org/Cesium/Apps/Sandcastle/index.html?src=Billboards.html&label=Showcases
  2. add verticalOrigin: Cesium.VerticalOrigin.BOTTOM to the sizeInMeters example
  3. Zoom in / out

Observed behaviour: when zooming out, the billboard seems to change it's height-position relative to the surface.

Expected behaviour: the bottom of the billboard stays "clamped" to the original position.

Let me know if you need more info!

@hpinkos
Copy link
Contributor

hpinkos commented May 10, 2017

Thanks for reporting this @YousefED! You can see the billboard is creeping upwards as I zoom out:

billboard-meters

var viewer = new Cesium.Viewer('cesiumContainer');

var entity = viewer.entities.add({
    position : Cesium.Cartesian3.fromDegrees(-75.59777, 40.03883),
    billboard : {
        image : '../images/Cesium_Logo_overlay.png',
        sizeInMeters : true,
        verticalOrigin: Cesium.VerticalOrigin.BOTTOM
    }
});

viewer.zoomTo(entity);

@YousefED
Copy link
Author

Thanks for adding. Offtopic: What tool do you use for your video snippets?

@hpinkos
Copy link
Contributor

hpinkos commented May 10, 2017

We use LICEcap to capture animated GIFs. Definitely comes in handy

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

3 participants