While using direction widget with JS API 3.14, we have observed that, The direction widget(“esri/dijit/direction”) is not honoring “directionLengthUnits” property and always displays route length unit in “miles”.
However in JS API 3.13, It honors the configured value for “directionLengthUnits” property to display the route length unit.
Attached is the code samples with the direction widget implementation using JS API 3.13 and 3.14.
var directions = new Directions({
map: map,
directionsLengthUnits: esriUnits.METERS
},"dir");
directions.startup();Seems to be an bug with 3.14 API, please suggest.