Geographic Information Systems Stack Exchange is a question and answer site for cartographers, geographers and GIS professionals. Join them; it only takes a minute:

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

ESRI's 10.0 documentation for legend indicates that this url should return a legend:

But it doesn't work. Is there something special I need to do when publishing a mapservice to enable legends? If not, does anyone know of a url that returns a legend?

share|improve this question
up vote 4 down vote accepted

The REST legend service was added in Service Pack 1. Has this server had Service Pack 1 installed? It appears that it has not.

'currentVersion' was added to serveral resources to indicate the version and patch level. See the latest ArcGIS 10 API documentation for more details.

share|improve this answer
Thanks Ryan, this makes me wonder if there's something in the API that tells you what SP is installed. – Kirk Kuykendall Nov 15 '10 at 15:32
10.0 SP1 returns a currentVersion value of 10.01, not the 10.0 that "vanilla" 10.0 returns. Just make sure to parse that properly, so you don't accidentally get 10.1! – mwalker Nov 15 '10 at 19:41

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.