Measurement
The Measurement widget provides tools to calculate the current location and measure distance and area. If the map’s coordinate system is not Web Mercator or geographic, or if complex polygons are drawn, it uses the geometry service to project or simplify geometries.
Configurable attributes
The following table describes the configurable attributes of the Measurement widget.
Attribute | Description |
---|---|
measurement | An object of ArcGIS API for JavaScript. See the params of Measurement Constructor.
|
Example
{
"measurement": {
"pointSymbol": {
"type": "esriSMS",
"style": "esriSMSSquare",
"color": [76, 115, 0, 255],
"size": 8,
"angle": 0,
"xoffset": 0,
"yoffset": 0,
"outline": {
"color": [152, 230, 0, 255],
"width": 1
}
},
"defaultAreaUnit": "esriAcres",
"defaultLengthUnit": "esriMiles"
}
}