Select to view content in your preferred language

extranneous Data in arcserver 10 sp1 legend

727
2
02-09-2011 08:51 AM
JasonThiel
Emerging Contributor
From what I can tell, the legend displays the following:
A.  Service name as defined by the name attribute in the layer definition in flex.
B.  Layer Name as defined in the .mxd
C.  The description you add on the symbology tab in the .mxd.

I would like to NOT show B.  I tried making my layer names null but that gave me NPR in flex.  Additionally, I wanted my layer names to be fairly descriptive in the service directory and this level of descriptiveness is programmer level, not user so the items that appear in B are worthless to general users.
Tags (2)
0 Kudos
2 Replies
BjornSvensson
Esri Regular Contributor
Yes, you are correct: "Each layer's legend information includes the symbol images and labels for each symbol". See http://help.arcgis.com/EN/arcgisserver/10.0/apis/rest/index.html?mslegend.html for more details about the REST Legend resource.  The Legend component in the Flex API is using the REST Legend resource.

I'm not sure I correctly understood your comment about the Service Directory, but you could have a short name as the "name" and a longer description in the "Description" field.

Not sure if this was helpful as anything more than "yes, you're correct"... 🙂
0 Kudos
JasonThiel
Emerging Contributor
In the service directory, at the high level view of the service, you get a list of layers by name.  these are the names that get sucked into the legend.  In order to make legend readable, these layer names must be short.   In my case, I have several layers with the same name now after I shortened them for the legend.  In the service directory, you now have to click the layer name to open the layer page to see the description.  So, its not entirely clear to the developer which service to use without having to drill down to the description.  Not a huge problem but definately a "nice to have".

I was hoping for a way to tell the flex component to not display the layer name or to somehow hide it on the results returned by the rest end point.
0 Kudos