[Globe] Set home viewport to lon 0

This commit is contained in:
Sandro Mani 2016-06-15 11:26:15 +02:00
parent 3fd27e0d17
commit 7ddb2928fe

View File

@ -301,7 +301,7 @@ void GlobePlugin::run()
osgEarth::Util::EarthManipulator* manip = new osgEarth::Util::EarthManipulator();
mOsgViewer->setCameraManipulator( manip );
osgEarth::Util::Viewpoint viewpoint;
viewpoint.focalPoint() = osgEarth::GeoPoint( osgEarth::SpatialReference::get( "wgs84" ), -90., 0., 0. );
viewpoint.focalPoint() = osgEarth::GeoPoint( osgEarth::SpatialReference::get( "wgs84" ), 0., 0., 0. );
viewpoint.heading() = 0.;
viewpoint.pitch() = -90.;
viewpoint.range() = 2e7;