GeometryService.UNIT_YARD in a esri.tasks.DistanceParameters

Discussion created by amarsden on Feb 11, 2014
Latest reply on Feb 11, 2014 by DSwingley-esristaff

i'm trying to finish my custom measure tool (the esri widget isn't up to the job)  and trying to allow users to change units.  I have code, not dis-similar to

However, whilst I can happily change to UNIT_FOOT,  UNIT_METER even UNIT_US_NAUTICAL_MILE I can't seem to get UNIT_YARD to work.

Looking at the DistanceParameters - it appears to store these as valies - so UNIT_METER is returned in the console as 9001. However UNIT_YARD returns UNDEFINED - surely that is a valid unit?