public void setFlatGlobe ( boolean doMercator ) { EarthFlat globe = new EarthFlat ( ) ; globe . setElevationModel ( new ZeroElevationModel ( ) ) ; wwd . getModel ( ) . setGlobe ( globe ) ; wwd . getView ( ) . stopMovement ( ) ; GeographicProjection projection ; if ( doMercator ) { projection = new ProjectionMercator ( ) ; } else { projection = new ProjectionEquirectangular ( ) ; } globe . setProjection ( projection ) ; wwd . redraw ( ) ; }
Set the globe as flat .