issrweb1

Question about legend for a feature layer from an offline geodatabase.

Discussion created by issrweb1 on Apr 6, 2016
Latest reply on Jun 8, 2016 by issrweb1

Hello.

 

I am trying to add two feature layers from an offline runtime geodatabase and am not being able to access any legend information for these layers. I can access the legendInfos for dynamic map services layer.

Is this by design, or a bug?

 

In this case layer.legend returns an empty object (code below). Any help is appreciated.

Thank You

            if(layer.layerType === Enums.LayerTypeFeature){
console.log(JSON.stringify(layer.renderer));
console.log(JSON.stringify(layer.legend));         
 
}

Outcomes