AnsweredAssumed Answered

"No Legend" appears in Legend some ArcGISDynamicMapServiceLayers

Question asked by wudgcd on May 23, 2012
Latest reply on May 25, 2012 by wudgcd
I'm having an issue with some ArcGISDynamicMapServiceLayers displaying "No Legend" in the legend when there should be one.  

Here is the code for one of the layers I'm having a problem with:

WaterLayer = new esri.layers.ArcGISDynamicMapServiceLayer(""); = "Water";

Here is the code for displaying the legend for this layer:

var LegDiv = dojo.byId("LegendDiv");

      LegendControl = new esri.dijit.Legend({
        map: map,
        layerInfos: [{
            layer: map.getLayer("Water"),
            title: " "
    }, LegDiv);


Attached is a image of the raw dump of the legend in the service.

Help!   What is wrong???  Is there a setting I need to adjust in the service.