|Visual Basic (Declaration)|
Public MustInherit Class MapLayer Implements IBoundable, ISpatialData2
public abstract class MapLayer : IBoundable, ISpatialData2
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.
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.
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)