public final void addLayerListener ( MapLayerListener listener ) { if ( this . listeners == null ) { this . listeners = new ListenerCollection <> ( ) ; } this . listeners . add ( MapLayerListener . class , listener ) ; }
Add a listener on the layer s events .