This project is read-only.

IFeatureLayer vs IMapFeaturelLayer vs IMapLayer?

Oct 5, 2014 at 4:14 PM
Hi!
Can somebody please explain when to use IFeatureLayer, when to use IMapLayer and when/if to user IMapFeatureLayer?
Oct 6, 2014 at 1:05 PM
Edited Oct 6, 2014 at 1:26 PM
HI..

IMapLayer its a layer which linked with map, and can be FeatureLayer, RasterLayer etc..

IFeatureLayer its a layer with point, line or polygon features, and may be not linked with any map.

IMapFeatureLayer its IFeatureLayer linked with map, and have properties and methods from both.

if layer linked with map, its have symbology, labels, legendtext etc..

When use which interface depends from your task.

P.S. Sorry from my English.. I from Ukraine..
Oct 6, 2014 at 11:50 PM
Thanks Koval

We love the Ukraine :o) thanx for all help... the community need all help!
Feb 17, 2015 at 3:13 PM
Could you elaborate a bit on the difference between IMapLayer and IMapFeatureLayer?
Feb 18, 2015 at 8:55 AM
If you have a look at the interfaces you'll see that IMapFeatureLayer inherits from IMapLayer and IFeatureLayer.
IMapLayer only inherits from ILayer and has one own function (DrawRegions).
IFeatureLayer inherits from 14 Interfaces and has about 30 functions, 10 properties and 3 event handlers.