display featureclass on map

3493
2
07-29-2014 06:34 AM
MichielvanDijk
New Contributor

Hello,

I am building an Arcgis for Desktop extension that should display points from a featureclass on a map. The extension is based on a custom layer and is built using ArcObjects SDK 10.0 for .Net using C#. The problem is that can't really figure how to display the features in the featureclass on the map document using the custom layer.

I am pretty new to ArcObjects, so any help would be welcome. 

Thanks!

0 Kudos
2 Replies
DuncanHornby
MVP Notable Contributor

Never had to create a custom layer, but a worked example is found here. You say you are new to ArcObjects and I was wondering if when you say custom‌ layer you simply meant an existing dataset (e.g. shapefile) you wish to visualize on a map? If this is what you actually meant then create an IFeatureLayer object and add that to the IMap.

0 Kudos
MichielvanDijk
New Contributor

Thanks for the reply. The reason I said custom layer, is that I am trying to add some functionality to an existing ArcGIS extension, which contains a custom layer already. So I wanted my features to be saved into that.

0 Kudos