By Daniel Garcia Roman, Madrid, Spain

Download the script.

Code Summary

This sample shows how to implement an advance custom task within a ArcGIS Server WebADF Java 9.2 SP4 application.

This task permits to apply a Class Breaks renderer into the current extent of a polygon layer. The legend of this renderer is show into details web results panel.

This task calculates a histogram, and using a user specific number of classes obtains breaks values.

Colors are calculated using ArcObjects color ramps functionality.

This task include new types of task parameters renderer:
- Color task parameter. This parameter enable to select colors using esri color chooser
- Select with event task parameter. This parameter send a ajax request on change event.
- Option with event task parameter. This parameter send a ajax request on change event.