code: public void addFeatures(Map<VectorLayer, List<Feature>> featureMap, Criterion criterion) {
  		if (showDetailsOnSingleResult && featureMap.size() == 1) {
  			// sorting is never needed if only 1 entry
  			List<Feature> features = featureMap.values().iterator().next();
  			if (features.size() == 1) {
  				showFeatureDetailWindow(map, features.get(0));
  			}
  		}
  
  		//Add feature tabs in map order
  		for (VectorLayer layer : map.getMapModel().getVectorLayers()) {
  			if (featureMap.containsKey(layer)) {
  				addFeatures(layer, featureMap.get(layer), criterion);
  			}
  		}
  		tabset.selectTab(0);
  	}
docs: Add features in the widget for several layers.
  
  @param featureMap map of features per layer
  @param criterion the original request for this search