Geographic Information Systems Stack Exchange is a question and answer site for cartographers, geographers and GIS professionals. It's 100% free, no registration required.

Sign up
Here's how it works:
  1. Anybody can ask a question
  2. Anybody can answer
  3. The best answers are voted up and rise to the top

I am generating a legend for a Silverlight map using the GetLegendInfo method in the ArcGIS 10 SOAP Web Services.

The array of MapServerLegendInfo objects that is returned does not contain annotation layers or raster layers that are in my map service. Does anyone know how I can get those layer types to return, or if there is a good workaround?

I know that the ESRI Silverlight API v2.1 contains it's own legend control, however I am not able to use that.

Thanks, Seth

share|improve this question
Since there is no question, it is hard to form an answer. – mwalker Dec 3 '10 at 19:37
I edited the question to try to make it clearer. – Seth P. Dec 3 '10 at 19:40
up vote 0 down vote accepted

GetLegendInfo is not going to let you get those layers by design:

Use GetLegendInfo to retrieve individual legend elements including the symbol image, labels, descriptions and headings. A common use would be to populate a table of contents. Note that composite layers such as group layers and annotation layers do not contain legend elements. To export a single image of the legend use ExportLegend on IMapServerLayout.

I cannot think of a workaround to this.

share|improve this answer

I think it would be possible to write a Server Object Extension (SOE) that does this.

I'd start out by writing an arcmap extension that serializes to a file, then once that's working, re-package it as an SOE.

share|improve this answer

Your Answer


By posting your answer, you agree to the privacy policy and terms of service.

Not the answer you're looking for? Browse other questions tagged or ask your own question.