protected boolean addLayer ( Layer layer ) { int index = getLayerIndex ( layer ) ; if ( index < 0 ) { view . add ( new LayerControlPanel ( mapPresenter , layer , disableToggleOutOfRange ) ) ; return true ; } return false ; }
Add a layer to the legend drop down panel .