AnsweredAssumed Answered

Show Layer (or not) in Legend?

Question asked by SBerg_VHB on Jan 30, 2017
Latest reply on Jan 31, 2017 by evtguy

Hi, does anyone know the API for instructing a new layer being added to a JS map, not to be included in the Legend dijit?



var featureLayer = new FeatureLayer(op.url, {
mode: FeatureLayer.MODE_SELECTION,
outFields: ["*"]
featureLayer.setSelectionSymbol(new SimpleLineSymbol(SimpleLineSymbol.STYLE_SOLID,
new Color([0, 255, 255]), 4));;//how to avoid having this layer show up in the legend?