AnsweredAssumed Answered

LabelExpressionInfo not honoring where clause

Question asked by dcoley on Jul 14, 2015
Latest reply on Jun 7, 2018 by rvangilst

Hello-

So I'm trying to override the default feature layer labels, but the where clause isn't being honored.  For my map constructor options:

 

showLabels : true

 

My LabelingInfo:

 

var labelArray = [
  {
  labelPlacement: "esriServerPointLabelPlacementAboveRight",
  labelExpression: "[AddNumber]",
  symbol: {
    type: "esriTS",
      color: [255,0,0,255], //[38,115,0,255],
      font: {
      family: "Arial",
      size: 9,
      style: "italic",
      weight: "bold",
      decoration: "none",
    }
    },
    minScale: 2401,
    maxScale: 0,
    where: "AddressStatus LIKE 'A%'"
  }
  ];
  console.log(labelArray);

 

and finally for the feature layer:

 

lyrAddresses.setLabelingInfo(labelArray);

 

 

All of the other constructor options for the labelng info are being honored, but wheneverI try to invoke the where clause, none of the points will label-

 

Thanks

David

Outcomes