The type of unit used for the distance values. The value is an integer value corresponding to the
DistanceUnits enumeration.
Namespace:
ESRI.ArcGIS.VE(in ArcGISVE.exe)
Syntax
| JScript |
|---|
function get DistanceUnits () : DistanceUnits |
Remarks
To obtain a descriptive string for the distance units, you can use the DistanceUnitNames property of the Geometry service object used when calling the measurement function. For example, if the Geometry object named geoService was used for the measurement, and the returned MeasureResults object is named data, the name for the distance units may be retrieved with:
Copy
var unitsString = geoService.DistanceUnitNames[data.DistanceUnits];