Measurement Widget - change result precision?

543
1
04-12-2013 09:00 AM
LauraWilson
New Contributor
Our client doesn't want to see any decimals in the measure widget results.  Is there a property for precision?  I've tried hooking into the "onMeasureEnd" event and doing Math.round(measurement.result);
, but I think it's already written to the DOM at that point.
0 Kudos
1 Reply
JohnGravois
Frequent Contributor
the widget doesn't expose the results in a way that makes their display configurable.  in order to get more fine grained control, you'd have to make your own calls to a geometry service instead (like in this example)...
0 Kudos