Is it possible to add labels to a 2D FeatureLayer in ArcGIS using the JavaScript 3.25 API. I can only find examples that use Javascript 4.8 and 3D scenes.
The following code doesn't show anything:
layer = new FeatureLayer("https://services3.arcgis.com/ntG7nrNunSl8x2gF/arcgis/rest/services/SmallAreasAgeRanges/FeatureServer/0", {
"id": "0",
"outFields": outFields,
"showLabels": true,
"labelingInfo": [{
"labelExpressionInfo": {"value": "Abc"},
"labelPlacement": "center-center",
"symbol": new TextSymbol("Abc")
}]
});