if (!blnFlat)
{
// Switch to round globe
super.wwd.getModel().setGlobe(_glbGlobeRound);
// Switch to orbit view and update with current position
FlatOrbitView flatOrbitView = (FlatOrbitView) super.wwd.getView();
BasicOrbitView orbitView = new BasicOrbitView();
orbitView.setCenterPosition(flatOrbitView.getCenterPosition());
orbitView.setZoom(flatOrbitView.getZoom());
orbitView.setHeading(flatOrbitView.getHeading());
orbitView.setPitch(flatOrbitView.getPitch());
super.wwd.setView(orbitView);
}
else
{
if (this._glbGlobeFlat == null)
{
_createGlobeFlat();
}
// Switch to flat globe
super.wwd.getModel().setGlobe(this._glbGlobeFlat);
// Switch to flat view and update with current position
BasicOrbitView orbitView = (BasicOrbitView) super.wwd.getView();
FlatOrbitView flatOrbitView = new FlatOrbitView();
flatOrbitView.setCenterPosition(orbitView.getCenterPosition());
flatOrbitView.setZoom(orbitView.getZoom());
flatOrbitView.setHeading(orbitView.getHeading());
flatOrbitView.setPitch(orbitView.getPitch());
super.wwd.setView(flatOrbitView);
}
// Change sky layer