question: public void dispose ( ) { clearListeners ( ) ; if ( attributes != null ) { attributes . clear ( ) ; } removed ( null ) ; }
target:  Method called when layer detects that it has been removed from MapHandler, assumes it's being thrown away. Use this method to let go of everything and to make any calls necessary to remove from listener lists that might not get picked up via MapHandler calls.