Select to view content in your preferred language

.GenerateRendererTask?

896
1
02-28-2014 12:17 PM
TomWang
Emerging Contributor
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;
0 Kudos
1 Reply
KevinThomas
Emerging Contributor

I'm sorry I don't have the solution but I'm curious about this also?  Have you discovered anything?  thanks!

0 Kudos