AnsweredAssumed Answered

ArcGIS Javascript API - Label renderers from Map Service for a FeatureLayer

Question asked by DemersM on Jun 13, 2017
Latest reply on Jun 13, 2017 by DemersM

I wonder if it is possible to use the labels renderers defined in a .mxd published as a Map Service (Feature Access enabled) for a FeatureLayer with the javascript API v4.3 just like it works with the geometry renderer?


I define a featureLayer like this:


var organismesLayer = new FeatureLayer({
  url: "",
  labelsVisible: true

In the map, I see the layer style is the same than in the .mxd, but the labels are not visible. Do I have to define the LabelClass manually in the javascript code?


Is there a way to get the label renderers from the Map Service?