![]() ![]() |
ESRI.ArcGIS.ADF.IMS | |
Units Property | |
See Also Example Send Feedback |
ESRI.ArcGIS.ADF.IMS.Carto Namespace > MapService Class : Units Property |
Visual Basic (Declaration) | |
---|---|
Public ReadOnly Property Units As MapUnits |
Visual Basic (Usage) | ![]() |
---|---|
Dim instance As MapService Dim value As MapUnits value = instance.Units |
C# | |
---|---|
public MapUnits Units {get;} |
This example prints the map units to a label control. It assumes a previously created MapService object.
C# | ![]() |
---|---|
// Using a previously created MapService object Label1.Text = "Map units of the service is: " + mapService.Units.ToString(); |
Visual Basic | ![]() |
---|---|
' Using a previously created MapService object Label1.Text = "Map units of the service is: " + mapService.Units.ToString() |
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.
Target 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