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("http://pri-img-rep-web.abcwua.org/ArcGIS/rest/services/WUAGISWater/MapServer");
    WaterLayer.id = "Water";
    map.addLayer(WaterLayer);
    AddLayerToRegistryPendList(WaterLayer);

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);

    LegendControl.startup();


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.

Attachments

Outcomes