AnsweredAssumed Answered

How to change a layer name in the legend ?

Question asked by mvillemontesrifrance-fr-esridist Employee on Aug 29, 2016
Latest reply on Aug 29, 2016 by mvillemontesrifrance-fr-esridist

The API Reference state that one can modify the layer name displayed in the legend by specifying a title in layerInfos.

However when I do so in ArcGIS API for JavaScript Sandbox I don't see any change :

var legend = new Legend({
  view: view,
  layerInfos: [{
    layer: featureLayer,
    title: "My new title"