@ Api public VectorLayer getVectorLayer ( String layerId ) { if ( layers != null ) { for ( VectorLayer layer : getVectorLayers ( ) ) { if ( layer . getId ( ) . equals ( layerId ) ) { return layer ; } } } return null ; }
Search a vector layer by it s id .