Select to view content in your preferred language

Adding a layer to the map with order based on feature type

05-09-2024 12:19 PM
New Contributor III

I have some code where I add one or more layers from a geodatabase using LayerFactory.Instance.CreateLayer(featureClass.GetPath(), MapView.Active.Map). I notice that when I manually add layers from a geodatabase, the map layer order is based on feature type, with point layers above line layers and line layers above polygon layers. Is there a parameter (or a different method) in the SDK that mimics this behavior?

0 Kudos
0 Replies