0

I am going through Generate renderer sample in ArcGIS Java Script API and I want to make similar example using my rest service.

I am going through the sample REST service and wondering that how they created dynamic legend in REST?

I searched and tried to generate the dynamic legend at my end but its not displaying in REST. I am classifying data in Arc Map (using layer properties--symbology) and publishing on server but not getting dynamic legend..

So any help will be great !! thanks in advance : )

Software's : ArcGIS Server & Desktop 10.1 and JSAPI 3.2/3.3

2

You'll need to use the Legend dijit. You can find documentation here:

http://help.arcgis.com/en/webapi/javascript/arcgis/jsapi/legend.html

You can see a working example here:

http://help.arcgis.com/en/webapi/javascript/arcgis/jssamples/widget_legendvisible.html

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

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