ESRI.ArcGIS.ADF.IMS
Units Property
See Also  Example
ESRI.ArcGIS.ADF.IMS.Carto Namespace > MapService Class : Units Property




Gets the MapUnits of the MapService.

Syntax

Visual Basic (Declaration) 
Public ReadOnly Property Units As MapUnits
Visual Basic (Usage)Copy Code
Dim instance As MapService
Dim value As MapUnits
 
value = instance.Units
C# 
public MapUnits Units {get;}

Example

This example prints the map units to a label control. It assumes a previously created MapService object.
C#Copy Code
// Using a previously created MapService object 

Label1.Text = "Map units of the service is: " + mapService.Units.ToString(); 

    
Visual BasicCopy Code
' Using a previously created MapService object

Label1.Text = "Map units of the service is: " + mapService.Units.ToString()

Remarks

Map units for map services can be Degrees, Feet or Meters. Coordinates for maps need to be interpreted in terms of the map units and coordinate system. Consult ArcIMS Help and sources on map coordinate systems for further information on using map units with coordinates.

This property, as with all properties of MapService, is read-only.

See Also

© 2010 All Rights Reserved.