This document is archived and information here might be outdated.  Recommended version.


ILayer Interface (ArcObjects .NET 10.8 SDK)
ArcObjects Help for .NET developers > ArcObjects Help for .NET developers > ArcObjects namespaces > Carto > ESRI.ArcGIS.Carto > Interfaces > IL > ILayer Interface
ArcGIS Developer Help

ILayer Interface

Provides access to members that work with all layers. Note: the ILayer interface has been superseded by ILayer2. Please consider using the more recent version.

Product Availability

Available with ArcGIS Engine, ArcGIS Desktop, and ArcGIS Server.

Description

ILayer is a generic interface for all layer objects. This interface has a method to draw the layer and provides access to generic layer properties.

Members

Name Description
Read-only property AreaOfInterest The default area of interest for the layer.
Read/write property Cached Indicates if the layer needs its own display cache.
Method Draw Draws the layer to the specified display for the given draw phase.
Read/write property MaximumScale Maximum scale (representative fraction) at which the layer will display.
Read/write property MinimumScale Minimum scale (representative fraction) at which the layer will display.
Read/write property Name Layer name.
Read/write property ShowTips Indicates if the layer shows map tips.
Write-only property SpatialReference Spatial reference for the layer.
Read-only property SupportedDrawPhases Supported draw phases.
Read-only property TipText Map tip text at the specified location.
Read-only property Valid Indicates if the layer is currently valid.
Read/write property Visible Indicates if the layer is currently visible.

Classes that implement ILayer

Classes Description
BasemapLayer Layer containing a Basemap.
CadAnnotationLayer An Esri Cad annotation layer.
CadastralFabricLayer Cadastral Fabric Layer Object.
CadastralFabricSubLayer Cadastral Fabric Feature Layer Object.
CadFeatureLayer Esri CAD Feature Layer class.
CadLayer Esri CAD Layer class.
CompositeGraphicsLayer A collection of graphics layers that behave like single layer.
CoverageAnnotationLayer An Esri coverage annotation layer.
DimensionLayer A collection of properties for a dimension layer.
DummyGraduatedMarkerLayer A dummy layer used to display legend items in the style gallery (Singleton).
DummyLayer A dummy layer used to display legend items in the style gallery (Singleton).
FDOGraphicsLayer A collection of properties for an annotation layer (feature data object graphics layer).
FDOGraphicsSublayer A collection of properties for an annotation sublayer layer (feature data object graphics sublayer).
FeatureLayer A collection of features and their visual representation.
GdbRasterCatalogLayer Geodabase RasterCatalog source and display options.
GeoVideoLayer (esriGlobeCore) The georeferenced video layer.
GlobeGraphicsLayer (esriGlobeCore) The Globe Graphics Layer.
GlobeLayer (esriGlobeCore) The cache-only globe layer.
GlobeServerLayer (esriGlobeCore) Provides programmatic access to a globe server layer.
GraphicsLayer3D (esri3DAnalyst) A 3D Graphics Layer.
GraphicsSubLayer Graphic sublayer handed back by the composite graphics layer.
GroupLayer A collection of layers that behaves like a single layer.
IMSMapLayer A container for the display and manipulation of IMS layers.
IMSSubFeatureLayer A collection of IMS features as a sublayer of an IMSMapLayer.
IMSSubLayer An IMS Layer as a sublayer of an IMSMapLayer.
JoinedControlPointLayer (esriCadastralUI) Layer object that represents Control Points.
JoinedLinePointLayer (esriCadastralUI) Layer object that represents Joined LinePoints.
JoinedParcelLayer (esriCadastralUI) Layer object that represents Joined Parcels.
JoinedParcelLineLayer (esriCadastralUI) Layer object that represents Joined Parcel Lines.
JoinedPointLayer (esriCadastralUI) Layer object that represents Joined Points.
KmlLayer (esriGlobeCore) Esri KML Layer class.
LasDatasetLayer The Terrain Layer class.
MapServerBasicSublayer Provides programmatic access to a basic map server sublayer.
MapServerFindSublayer Provides programmatic access to a map server sublayer with Find capability.
MapServerIdentifySublayer Provides programmatic access to a map server sublayer with Identify capability.
MapServerLayer Provides programmatic access to a map server layer.
MapServerQuerySublayer Provides programmatic access to a map server sublayer with Find and Identify capability.
MapServerRESTLayer Provides programmatic access to a a layer based on MapServer using REST access.
MapServerRESTSubLayer Provides programmatic access to a MapServer SubLayer.
MosaicLayer The layer implementation of the Mosaic Dataset.
NALayer (esriNetworkAnalyst) The layer for defining, solving, and viewing network analysis results.
NetworkLayer Esri Network Layer CoClass.
PacketJoinedLayer (esriCadastralUI) Layer object that represents a packet of Joined Parcels, Lines, Points, Control Points, LinePoints and Text.
ProcessLayer (esriGeoprocessing) A collection of process layers that behaves like a single layer.
RasterBasemapLayer Basemap Layer containing a Raster.
SchematicLayer (esriSchematic) A Schematic layer object.
SearchResultsLayer (esriCatalog) A layer that lets you preview a search result in the Geography tab. This object is not supported on ArcGIS version 10.1. or later.
TemporalFeatureLayer (esriTrackingAnalyst) Defines the coclass IDL parameters and attributes of the TemporalFeatureLayer COM object.
TerrainLayer The Terrain Layer class.
TinLayer The TIN Layer class.
TopologyLayer A collection of properties for a topology layer.
WCSLayer WCS layer source and display options.
WMSGroupLayer A container for the display of WMS group layers.
WMSLayer A container for the display of WMS sub layers.
WMSMapLayer A container for the display and manipulation of WMS layers.
WMTSLayer Provides programmatic access to WMTS layer.

Remarks

This interface has a method to draw the layer and properties to define the minimum and maximum display scales, the spatial reference, the name, layer visibility, whether or not the layer is cached, and whether or not the layer shows map tips.

There are also properties that indicate whether the layer is valid, its supported draw phases, area of interest, and the map tip text for a given coordinate.

.NET Samples

Time Series Graph tool add-in Layer effects animation in ArcMap Layer effects animation in ArcMap Applying a time offset to a time-aware feature layer Create camera flyby from path Closest facility solver Custom scene navigation commands Custom scene navigation commands Custom UI elements using add-ins Layer property page and property sheet Dynamic cache layer manager controller Tabbed feature inspector Creating a toolbar of globe tools Creating a toolbar of globe tools Create a geoprocessing tool to buffer a layer and retrieve messages Graphics layers ToolControl Load network layer from active analysis to the table of contents Location-allocation solver Displaying MapTips in the MapControl Save a layer file in a MapControl application 3D multipatch examples Dynamic display layer Add a traversal result to the map ArcGIS Network Analyst extension barrier location editor ArcGIS Network Analyst extension Engine application ArcGIS Network Analyst extension Engine application ArcGIS Network Analyst extension Engine application ArcGIS Network Analyst extension Engine application Origin-destination cost matrix solver Route layer RSS weather layer RSS weather layer RSS weather layer RSS weather layer RSS weather layer RSS weather layer RSS weather layer Schematic diagram auto refresh Utility wizard for basic schematic datasets configuration Schematics Engine application Schematics Engine application Implementing a schematic layout algorithm and its layout property page Custom selection extension Create a custom selection extension by extending ArcObjects Selection restriction evaluator Service area solver Subset network evaluators Change layer rendering using the SymbologyControl Add and symbolize a historical temporal layer in ArcMap Adding a real-time feed to ArcMap Updating the purge rule on a real-time temporal layer Temporal statistics Temporal statistics Displaying a TOCControl context menu Displaying a TOCControl context menu Displaying a TOCControl context menu Displaying a TOCControl context menu TOCControl metadata viewer Layer filtering TOC view Visualizing the camera path while animating Vehicle routing problem solver Working with packages in ArcGIS Engine