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));
this.map.addLayer(featureLayer);//how to avoid having this layer show up in the legend?