public void removeLayer ( Layer layer ) { if ( layers . contains ( layer ) ) { layers . remove ( layer ) ; mapInfo . getLayers ( ) . remove ( layer . getLayerInfo ( ) ) ; handlerManager . fireEvent ( new MapModelChangedEvent ( this ) ) ; } }
Remove a layer from the map .