Select to view content in your preferred language

Legend for ImageService

2787
3
Jump to solution
02-13-2012 05:37 AM
MattGiles
Deactivated User
Is it possible to have a legend for an ImageService?
Tags (2)
0 Kudos
1 Solution

Accepted Solutions
BjornSvensson
Esri Regular Contributor
0 Kudos
3 Replies
BjornSvensson
Esri Regular Contributor
0 Kudos
DavidHollema
Deactivated User
I've written a web application that consumes image services.  If I want to show a legend, is it up to me as developer to roll my own solution?  Do any widgets or functionality in the web api's offer any help?  Other options?

No, only the MapServer supports legends:
http://services.arcgisonline.com/ArcGIS/SDK/REST/index.html?mslegend.html
0 Kudos
DavidHollema
Deactivated User
Rolled my own.  Attached is the enhanced javascript 2.8 legend control designed to provide legend for 10.1 image services with discrete (thematic) data. The image service must contain a colormap and optionally a raster attribute table. Feel free to use, customize, etc.

Dave

I've written a web application that consumes image services.  If I want to show a legend, is it up to me as developer to roll my own solution?  Do any widgets or functionality in the web api's offer any help?  Other options?
0 Kudos