can't get featurelayer labels to display

415
0
04-05-2017 11:15 AM
CharlieElverson
New Contributor II

I have the following bit of code creating a featurelayer and it's then added to the map, but the labels don't display.

this.buildingsLayer = newFeatureLayer({
url:BASESERVERURL + ROOMVIEWS_SUFFIX + "4",
id:"Buildings",
labelsVisible:true,
labelingInfo: [new LabelClass({
labelExpressionInfo: { value:"{BuildingID}" },
symbol:newTextSymbol({
color:newColor("black"),
haloSize:1,
haloColor:newColor("white")
        })
      })]
    });

I have also tried setting up the labels as indicated here: MapImageLayer - label sublayer features | ArcGIS API for JavaScript 4.3 

0 Kudos
0 Replies