public void onDetach() {
        close();
        if (mView != null)
            mView.setTag(null);
        mView = null;
        mMapView = null;
        if (Configuration.getInstance().isDebugMode())
            Log.d(IMapView.LOGTAG, "Marked detached");
    }
public void onDetach ( ) { close ( ) ; if ( mView != null ) mView . setTag ( null ) ; mView = null ; mMapView = null ; if ( Configuration . getInstance ( ) . isDebugMode ( ) ) Log . d ( IMapView . LOGTAG , "Marked detached" ) ; }
this destroys the window and all references to views