saj0023

Legend_HideLayer

Discussion created by saj0023 on Apr 29, 2014
Latest reply on May 2, 2014 by saj0023
Hello, i would like to hide some layers from my legend, i know ID´s of layer which i want hide, but i dont know how to use LayerInfo: HideLayers
This is my legend, please can you give me some example how to hide layers, thanks

var legend = new Legend({
      map: map,
    }, "legendDiv");
    legend.refresh([{layer:dynamicMapServiceLayer, title:'Vodstov '}]);

    legend.startup();

Outcomes