function returnLayerByAttribute(lyr,att,val) {
  var arLayers = lyr.getLayers();
  for (i=0;i<arLayers.length;i++) {
      var ftrVal = arLayers[i].feature.properties[att];
      if (ftrVal==val) {
          return arLayers[i];
      }
  }
  return false;
}
//with a specific attribute/value combination
with a specific attribute/value combination
with a specific attribute / value combination
function returnLayerByAttribute(lyr,att,val) {
  var arLayers = lyr.getLayers();
  for (i=0;i<arLayers.length;i++) {
      var ftrVal = arLayers[i].feature.properties[att];
      if (ftrVal==val) {
          return arLayers[i];
      }
  }
  return false;
}
function returnLayerByAttribute ( lyr , att , val ) { var arLayers = lyr . getLayers ( ) ; for ( i = 0 ; i < arLayers . length ; i ++ ) { var ftrVal = arLayers [ i ] . feature . properties [ att ] ; if ( ftrVal == val ) { return arLayers [ i ] ; } } return false ; }
with a specific attribute/value combination
with a specific attribute / value combination