@Api
	public VectorLayer getVectorLayer(String layerId) {
		if (layers != null) {
			for (VectorLayer layer : getVectorLayers()) {
				if (layer.getId().equals(layerId)) {
					return layer;
				}
			}
		}
		return null;
	}
@ 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.

@param layerId
The layer's client ID.
@return Returns either a Layer, or null.
@since 1.6.0