Skip to content

osgEarth - Getting the current width/heigth of the view in degrees #2465

Discussion options

You must be logged in to vote

Perhaps you can use this function:

MapNode::getGeoPointUnderMouse(view, x, y, output);

...where x and y are screen coordinates. Given two valid queries you can measure the distance between then.

Replies: 1 comment 3 replies

Comment options

You must be logged in to vote
3 replies
@Warren-Whitfield
Comment options

@gwaldron
Comment options

@Warren-Whitfield
Comment options

Answer selected by gwaldron
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
2 participants