public void setProjectionImpl( ProjectionImpl p) {
      // transfer selection region to new coord system
    if (geoSelection != null)  {
      LatLonRect geoLL = project.projToLatLonBB(geoSelection);
      setGeoSelection( p.latLonToProjBB( geoLL));
    }

      // switch projections
    project = p;
    navigate.setMapArea(project.getDefaultMapArea());
    if (Debug.isSet("projection/set") || debugNewProjection)
      System.out.println("projection/set NP="+ project);

      // transfer reference point to new coord system
    if (hasReference)  {
      refWorld.setLocation(project.latLonToProj( refLatLon));
    }

  }
public void setProjectionImpl( ProjectionImpl p) {
      
    if (geoSelection != null)  {
      LatLonRect geoLL = project.projToLatLonBB(geoSelection);
      setGeoSelection( p.latLonToProjBB( geoLL));
    }

      
    project = p;
    navigate.setMapArea(project.getDefaultMapArea());
    if (Debug.isSet("projection/set") || debugNewProjection)
      System.out.println("projection/set NP="+ project);

      
    if (hasReference)  {
      refWorld.setLocation(project.latLonToProj( refLatLon));
    }

  }
public void setProjectionImpl ( ProjectionImpl p ) { // transfer selection region to new coord system if ( geoSelection != null ) { LatLonRect geoLL = project . projToLatLonBB ( geoSelection ) ; setGeoSelection ( p . latLonToProjBB ( geoLL ) ) ; } // switch projections project = p ; navigate . setMapArea ( project . getDefaultMapArea ( ) ) ; if ( Debug . isSet ( "projection/set" ) || debugNewProjection ) System . out . println ( "projection/set NP=" + project ) ; // transfer reference point to new coord system if ( hasReference ) { refWorld . setLocation ( project . latLonToProj ( refLatLon ) ) ; } }
Set the Projection, change the Map Area to the projection's default.
Set the Projection change the Map Area to the projection s default .