code: public StyleRow getStyle(GeometryType geometryType) {
  
  		StyleRow styleRow = null;
  
  		if (geometryType != null && !styles.isEmpty()) {
  			List<GeometryType> geometryTypes = GeometryUtils
  					.parentHierarchy(geometryType);
  			geometryTypes.add(0, geometryType);
  			for (GeometryType type : geometryTypes) {
  				styleRow = styles.get(type);
  				if (styleRow != null) {
  					break;
  				}
  			}
  		}
  
  		if (styleRow == null) {
  			styleRow = defaultStyle;
  		}
  
  		if (styleRow == null && geometryType == null && styles.size() == 1) {
  			styleRow = styles.values().iterator().next();
  		}
  
  		return styleRow;
  	}
docs: Get the style for the geometry type
  
  @param geometryType
  geometry type
  @return style