ESRI.ArcGIS.Mobile
MapLayer Class
Members  See Also  Send Feedback
ESRI.ArcGIS.Mobile Namespace : MapLayer Class

Representation of Layer exposed to the user via MapLayers collection on Map.

Object Model




Syntax

Visual Basic (Declaration) 
Public MustInherit Class MapLayer 
   Implements IBoundable, ISpatialData2 
C# 
public abstract class MapLayer : IBoundable, ISpatialData2  

Remarks

You can subclass a MapLayer if you want to nest a dataset in the MapLayer pile. A good example would be a shapefile or a SDCLayer. The data for a MapLayer shouldn't change so often and shouldn't generate too many screen refreshes.

Unlike the original MobileServiceLayer, which represents the map data defined on the Server, MapLayer is exposed through the Map control, and hence determines how MapLayer is presented to the end user on display, allowing its properties (like name, visibility, or transparency) to be modified by the user/developer.

To see the difference between MapLayer and MapGraphicLayer, see MapGraphicLayer.

A couple of MapLayer properties are available to customize the display of map through Map control, such as MinScale, MaxScale, Transparency, Visible, etc.

Two methods are exposed for map labels. The GetMaplayerLabelClass method returns the label class used by current map layer and allow you to turn the label on or off, and MapLayerLabelClassCount returns the number of label classes.

The legend used for current map layer is available through the renderer class Renderer.GetLegendSwatches method, which returns LegendSwatch objects. For more information, see LegendSwatch.

Inheritance Hierarchy

Requirements

Namespace: ESRI.ArcGIS.Mobile

Platforms: Windows 98, Windows NT 4.0, Windows Millennium Edition, Windows 2000, Windows XP Home Edition, Windows XP Professional, Windows Server 2003 family, Windows Vista, Windows Server 2008 family

Assembly: ESRI.ArcGIS.Mobile (in ESRI.ArcGIS.Mobile.dll)

See Also