dojo.require("esri.tasks.LinearUnit")
Description
(Added at v1.0)
A data object containing a linear distance.
Samples
Search for
samples that use this class.
Constructors
Properties
distance | Number | Specifies the value of the linear distance. |
units | String | Specifies the unit type of the linear distance, such as "esriMeters", "esriMiles", "esriKilometers" etc. |
Constructor Details
Creates a new LinearUnit object. The constructor takes no parameters.
Sample:
var distUnit = new esri.tasks.LinearUnit();
Property Details
Specifies the value of the linear distance.
Sample:
distUnit.distance = 5;
Specifies the unit type of the linear distance, such as "esriMeters", "esriMiles", "esriKilometers" etc.
Sample:
distUnit.units = "esriMiles";