Requesting a Legend Using REST

To request a map legend using the Mapping Service REST interface, you submit an HTTP GET request to the corresponding REST URL. The request URL will have this general form:


  HTTP GET /maps/mapname/legend.type;w=width;h=height;t=imagetype;
	[r=resolution];[l=locale]?[inlineSwatch=boolean]
		

For more information on the Mapping Service REST interface method to request a map legend, see the topic Get Legend for a Named Map in this guide.