AnsweredAssumed Answered

New FeatureLayer does not render existing data

Question asked by xFrcksy on Aug 19, 2020
Latest reply on Sep 16, 2020 by xFrcksy

Hello,

I'm using LayerFactory.Instance.CreateFeatureLayer(...) to create new Layers based on .lyrx files.

The Layer's "dataset" references an existing feature-table in the geo-database.

 

What I expect: ArcGIS Pro creates the new layer and renders the existing geo-objects from the feature-table.

 

What happens: ArcGIS Pro creates the new layer, but does not render any objects. The layer is empty. However, when I open the Layer's "attribute table", using the context menu, I can see the data!

 

Obviously, I'm missing something. Is there a way to enforce the rendering of existing data programmatically?

Outcomes