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

Earth manipulator setMinMaxDistance() doesn't work well with setZoomToMouse() #2262

Open
OlaRune opened this issue Apr 11, 2023 · 0 comments
Assignees
Labels
defect It's busted

Comments

@OlaRune
Copy link
Contributor

OlaRune commented Apr 11, 2023

When using a maximum zoom distance together with zoom to mouse

osgEarth::EarthManipulator* manipulator = new osgEarth::EarthManipulator();
manipulator->getSettings()->setZoomToMouse(true);
manipulator->getSettings()->setMinMaxDistance(0.0, 100000000.0);
viewer->setCameraManipulator(manipulator);

... and trying to zoom out farther than the max distance. The zoom function is limited as expected, however the new center point is recalculated and applied, which makes the map pan away in some direction.

@gwaldron gwaldron added the defect It's busted label Jun 1, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
defect It's busted
Projects
None yet
Development

No branches or pull requests

3 participants