-
Notifications
You must be signed in to change notification settings - Fork 3.5k
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.prototype.computeScreenSpacePosition returning wrong y position #3920
Comments
@bagnell any idea here? Is this related to 651a8b2#diff-97a34c40d0a290b6fab62f87f92bcc6f or dae0242#diff-97a34c40d0a290b6fab62f87f92bcc6f? |
Git bisect says this went bad in 651a8b2. |
Given this has been brought up several times this month, we should probably try to get to this before the next release. |
Here's some test code. A small
|
So is this just a one-character change to negate y? |
It's basically |
Possibly related: https://groups.google.com/forum/?hl=en#!topic/cesium-dev/2LkqgI7LemA He says Label.computeScreenSpacePosition works in 3D but not 2D |
@bagnell can you look at this in time for the release next week? |
The behavior of computeScreenSpacePosition seems to have changed recently (there seem to be a few new commits changing Billboard.js). It looks like the y screen coordinate is the inverse of what it used to be. According to the API docs, the y coordinate increases from top to bottom.
The attached Billboards sandcastle example prints the screen positions and the computed screen positions of the clicked billboard.
Am I possibly missing something here?
sandcastle_compute_screenposition.txt
The text was updated successfully, but these errors were encountered: