AnsweredAssumed Answered

legend: hideLayer for tiled map service

Question asked by fraxinus on Aug 17, 2012
Latest reply on Aug 20, 2012 by fraxinus

I am trying to hide some layers from a service, an ArcGIS 10.1 tiled map service. I am using 3.1 of the API...

My legend constructor looks like this:
geoLegend = new esri.dijit.Legend({    map:myMap,    layerInfos: [{layer:myLayer, title: 'My data', hideLayers: [0,1,2,3]}] },"legendDiv");

But the hideLayers part doesn't seem to stick... What am I doing wrong? Does this not work on tile service... ?