How to make ClassBreakRenderer work for FeatureCollecionLayer

202
1
02-01-2023 08:13 AM
noodle
by
New Contributor III

I get FeatureQueryResult by running gpkx.  I create a FeatureCollectionLayer following way.   The issue is that ClassBreakRendere does not work and gives polyline with the default Symbol only.   I verified the range by getting a particular attribute values.  Can you name what I'm doing is incorrect?

FeatureCollectionTable collectTable = new FeatureCollectionTable(qs);

FeatureCollection featCollection = new FeatureCollection();
featCollection.Tables.Add(collectTable);

foreach (var table in featCollection.Tables)
{
  table.Renderer = CreateCBRenderer(table.GeometryType);
}

FeatureCollectionLayer fclLayer = new FeatureCollectionLayer(featCollection);
await fclLayer.LoadAsync();

0 Kudos
1 Reply
PreetiMaske
Esri Contributor

ClassBreaksRenderer should work for FeatureCollection. The fact that it is rendering the default symbol indicates that value coming from attribute is not matching or falling within the ranges defined by classbreaks renderer. I am happy to look into further if you can provide the data/gpkx and some repro code.

0 Kudos