ArcObjects Library Reference (Carto)  

ILayer2 Interface

Provides access to additional members that work with all layers.

Product Availability

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

Description

ILayer2 is a generic interface for all layer objects. This interface has a method to draw the layer and provides access to generic layer properties. This interface adds to what is supported by ILayer by adding a property that indicates whether or not the scale range properties are read only and a property that lets you set the layer's area of interest.

Members

Description
Read/write 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-only property ScaleRangeReadOnly Indicates if the minimum and maximum scale range values are read-only.
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 ILayer2

CoClasses and Classes Description
BasemapSubLayer Wrapper for layers in the basemap.
CadAnnotationLayer An Esri Cad annotation layer.
CadastralFabricSubLayer Cadastral Fabric Feature Layer Object.
CadFeatureLayer Esri CAD Feature 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.
FDOGraphicsLayer A collection of properties for an annotation layer (feature data object graphics layer).
FeatureLayer A collection of features and their visual representation.
GdbRasterCatalogLayer Geodabase RasterCatalog source and display options.
GroupLayer A collection of layers that behaves like a single layer.
IMSSubLayer An IMS Layer as a sublayer of an IMSMapLayer.
MADtedLayer (esriDefenseSolutions) A layer used to control the display of MA DTED Catalogs.
MapServerRESTSubLayer Provides programmatic access to a MapServer SubLayer.
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.
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.
TemporalFeatureLayer (esriTrackingAnalyst) Defines the coclass IDL parameters and attributes of the TemporalFeatureLayer COM object.
WMSGroupLayer A container for the display of WMS group layers.