JavaScript API 3.11 FeatureLayer Label expression

4547
1
12-22-2014 07:48 AM
EricMcPhee
New Contributor III

I have added a featurelayer to my application and I want it to label based upon the label expression setup in the map service. This works if I use a simple expression (a single field), but the labels fail to draw if I concatenate two fields together in the map service (Label Expression: [TOWN] CONCAT "-" CONCAT [RANG]). Anybody have any insight??

0 Kudos
1 Reply
GarimaDhakal
New Contributor III

Unfortunately this is a known limitation. The API does not recognize language construction like CONCAT. The workaround is to use LabelLayer.

0 Kudos