ArcObjects Library Reference (Carto)  

ILayer Interface

Provides access to members that work with all layers. Note: the ILayer interface has been superseded byILayer2. 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

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.

CoClasses that implement ILayer

CoClasses and 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.
ForceElementLayer (esriDefenseSolutions) A custom layer, bound to a feature layer, that wraps a force element display list and makes it possible to view and manipulate its cached graphic contents in an ArcGIS map display.
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.
ImageServerLayer Image server layer source and display options.
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.
MADtedLayer (esriDefenseSolutions) A layer used to control the display of MA DTED Catalogs.
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.
MARasterLayer (esriDefenseSolutions) A layer used to control the display of MA RPF Catalogs.
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.
NITFGraphicsLayer A NITF graphics layer containing NITF CGM graphics.
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.
RasterCatalogLayer Raster catalog source and display options.
RasterLayer Raster layer source and display options.
SchematicLayer (esriSchematic) A Schematic layer object.
SearchResultsLayer (esriCatalog) A layer that lets you preview a search result in the Geography tab.
TacticalGraphicLayer (esriDefenseSolutions) A custom layer, bound to a feature layer, that wraps a tactical graphic display list and makes it possible to view and manipulate its cached graphic contents in an ArcGIS map display.
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.

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 Snippets

Zoom to Selected Globe Features | Load Tactical Graphic Layer | Create Group Layer Animation | Add Drape Layer to Globe Elevation Surface | Save Layer To File | Toggle Visibility Of Composite Layer | Load Force Element Layer | Do Identify | Create Animation from Path | Add Graphics Layer to Globe | Add Globe Layer by Type | Add Tracking Layer To Map | Draw Globe Layers in Correct Order | Get Path for a Layer | Create Animation by Interpolating Between Two Keyframes | Set Globe Layer Properties | Loop Through Layers of Specific UID | Zoom to Active Layer in TOC | Zoom to Globe Layer | Add Vector Data to Globe | Set Data Source | Add KML Data to Globe |

.NET Samples

3D multipatch examples (Code Files: GraphicsLayer3DUtilities) | Add a traversal result to the map (Code Files: AddTraversalResultsToMap) | Add and symbolize a historical temporal layer in ArcMap (Code Files: AddTemporalLayerButton) | Adding a real-time feed to ArcMap (Code Files: AddTrackingServerLayerButton) | Applying a time offset to a time-aware feature layer (Code Files: TimeOffsetButton) | Change layer rendering using the SymbologyControl (Code Files: LayerRendering) | Closest facility application using the NAServer extension in ArcGIS Server via a GIS server (Code Files: ClosestFacility_GISServerAPIClass) | Closest facility solver (Code Files: frmClosestFacilitySolver) | Convert part to feature command (Code Files: ConvertPart) | Create a command by inheriting from BaseCommand (Code Files: ZoomToLayer) | Create a custom selection extension by extending ArcObjects (Code Files: ZoomToLayerMultiItem) | Create a geoprocessing tool to buffer a layer and retrieve messages (Code Files: BufferDlg) | Create camera flyby from path (Code Files: frmCameraPath) | Creating a toolbar of globe tools (Code Files: Layer TableOfContents) | Custom scene navigation commands (Code Files: SelectFeatures SelectGraphics) | Custom selection extension (Code Files: ZoomToLayerMultiItem) | Custom UI elements using add-ins (Code Files: ZoomToLayerButton) | Displaying a TOCControl context menu (Code Files: LayerSelectable RemoveLayer ScaleThresholds ZoomToLayer) | Displaying MapTips in the MapControl (Code Files: MapTips) | Displaying MOLE symbology with the GlobeControl (Code Files: MainForm) | Dynamic cache layer manager controller (Code Files: CacheManagerDlg) | Dynamic display layer (Code Files: AddMyDynamicLayerCmd) | Graphics layers ToolControl (Code Files: GraphicsLayersListCtrl) | Implementing a property page for an ArcGIS Engine application (Code Files: frmMain) | Implementing a schematic layout algorithm and its layout property page (Code Files: TranslateTree) | Layer effects animation in ArcMap (Code Files: AnimationTypeLayerEffects MapLayerEffectsKeyframe) | Layer filtering TOC view (Code Files: TOCLayerFilter) | Layer property page and property sheet (Code Files: LayerVisibilityPage) | Load network layer from active analysis to the table of contents (Code Files: LoadNetworkLayerFromActiveAnalysisToTOC) | Location-allocation solver (Code Files: frmLocationAllocationSolver) | Network Analyst barrier location editor (Code Files: NABarrierLocationEditor) | Network Analyst Engine application (Code Files: cmdRemoveLayer frmLoadLocations frmMain frmNALayerProperties) | Origin-destination cost matrix solver (Code Files: frmODCostMatrixSolver) | Route application using the NAServer extension in ArcGIS Server via a GIS server (Code Files: Route_GISServerAPIClass) | Route layer (Code Files: Program) | RSS weather layer (Code Files: AddRSSWeatherLayer AddWeatherItemCmd AddWeatherItemTool RefreshLayerCmd RSSLayerProperties RSSWeatherIdentifyObject SelectByCityName) | Save a layer file in a MapControl application (Code Files: frmMain) | Schematic diagram auto refresh (Code Files: FormAutorefresh) | Schematics Engine application (Code Files: RemoveLayer ZoomToLayer) | Selection restriction evaluator (Code Files: SelectionRestrictionEvaluator) | Service area application using the NAServer extension in ArcGIS Server via a GIS server (Code Files: ServiceArea_GISServerAPIClass) | Service area solver (Code Files: frmServiceAreaSolver) | Subset network evaluators (Code Files: SubsetHelperUI) | Tabbed feature inspector (Code Files: EngineApplication) | Temporal statistics (Code Files: MainForm) | Time Series Graph tool add-in (Code Files: TimeSeriesGraph) | TOCControl metadata viewer (Code Files: MetadataViewer) | Updating the purge rule on a real-time temporal layer (Code Files: PurgeRuleForm) | Using the traversal result to select source features (Code Files: SelectFeaturesTool) | Vehicle routing problem solver (Code Files: frmVRPSolver) | Visualizing the camera path while animating (Code Files: VisualizeCameraPath) |

.NET Related Topics

3DAnalyst | Adding data to globe | Converting labels to geodatabase annotation for a single layer | Converting labels to map annotation for a single layer | Create a command by inheriting from BaseCommand | Creating and working with basemap layers | DefenseSolutions | Disabling or validating label edits in the TOCControl | GeoData services | GlobeCore | How to access a layer's underlying data | How to access maps and layers via the MapDocument | How to access maps and layers via the MxDocument | How to add different types of layers to a map | How to create an edit session | How to create dynamic menu commands using a MultiItem | How to drop data onto the MapControl | How to get and set the drawing order of layers in globe | How to zoom to a layer in globe | How to zoom to selected features in globe | Persisting cache information for use in dynamic display | Server object extensions (SOE) | Using ArcObjects as tool input | Using feature templates | Utility COM objects |