Measurement dijit: How can I get more decimals after the point?

2742
3
Jump to solution
12-04-2015 09:05 AM
YohanBienvenue1
New Contributor

Hi,

The Measurement dijit always displays a specific number of decimals for each unit, e.g. 1 decimal for meters, 2 decimals for kilometers, etc.. I can't figure out how to have more decimals displayed. I know from stepping into the Measurement dijit code that the measure has plenty of decimals, however they all get truncated at some point before being displayed.

Thanks,

Yohan

0 Kudos
1 Solution

Accepted Solutions
KristianEkenes
Esri Regular Contributor

The plan is to allow you as a developer to configure the decimal precision as a property on this widget in the 4.0 API.

View solution in original post

3 Replies
RobertScheitlin__GISP
MVP Emeritus

Yohan,

   Unfortunately I do not see any ability to configure the Measurement dijits result precision.

0 Kudos
KristianEkenes
Esri Regular Contributor

The plan is to allow you as a developer to configure the decimal precision as a property on this widget in the 4.0 API.

YohanBienvenue1
New Contributor

Ok thank you for this answer. I will stop searching

When doing property measurements two decimals is used 99% of the time, so we will change this when we switch to the 4.0 API.

0 Kudos