AnsweredAssumed Answered

How to turn off a layer's field name in the legend using CSS?

Question asked by cbbardash@gmail.com on Mar 31, 2016
Latest reply on Apr 1, 2016 by kenbuja

Update: I edited this post to clarify.

We are updating our web map to the API version 3.16.  In the prior version the field name for the esriLegendLayer was not showing up in the legend, but now it is with this new version. I am trying to turn it off using CSS for the .esriLegendLayer property but I cannot get access to just the field name.  If I set the display to none for this property then the whole thing disappears.  What's frustrating is that I can successfully turn it off  in the console, but I cannot seem to specify this single component of layer in the legend.  Is there a way to do this using the Legend's CSS?  Thanks.

 

As displayed in the 3.12 version of the API:

As displayed in the 3.16 version of the API:

Outcomes