twang@enkon.com

.GenerateRendererTask?

Discussion created by twang@enkon.com on Feb 28, 2014
Latest reply on Sep 5, 2014 by kevinthomas
Hi,

Is it possible to generate a 5 classbreak quantile render for a QueryDataSource dynamicLayer/featurelayer?

For example, a featurelayer is:

var featureLayer = new FeatureLayer("http://sampleserver6.arcgisonline.com/arcgis/rest/services/USA/MapServer/dynamicLayer", {
          mode: FeatureLayer.MODE_ONDEMAND,
          outFields: ["*"],
          infoTemplate: infoTemplate,
          source: layerSource
        });

How to create a render with a classDef:

var classDef = new ClassBreaksDefinition();
          classDef.classificationField = app.currentAttribute;
          classDef.classificationMethod = "quantile";
          classDef.breakCount = 5;
          classDef.baseSymbol = app.sfs;

Outcomes