jsapi 2.3 : measurement widget in meter

578
4
05-25-2011 11:24 PM
Marie-GilSeptfonds
New Contributor
Hello,

I'm trying to use the mesurement widget whith my mapservice in wkid = 2154.
I include the patch.js

When I measure in acre or miles it's ok, but when I measure in meter, the widget return NAN.


http://extranet.nimes.fr/website/extranet/AGS/test/mesure.html

thanks for your help.
Sylvain
0 Kudos
4 Replies
KellyHutchins
Esri Frequent Contributor
I ran your test app a few times and can't reproduce the issue with NAN when measuring in meters. Can you provide more details about how to reproduce? For example, does it only happen with large shapes or in a certain area?

Kelly
0 Kudos
Marie-GilSeptfonds
New Contributor
Well, I measure a distance of 0,04 miles.
When I measure the same distance in Mètres the result is NAN Mètres

For areas :
I obtain 0.45 Acres
NaN Miles carrés
NaN Kilomètres carrés
0.18 Hectares
NaN Yards carrés
NaN Pieds carrés
NaN Mètres carrés

Can it be a localisation pb whith the difference between "," and "." ?

Sylvain
0 Kudos
KellyHutchins
Esri Frequent Contributor
Yes this does look like a localization issue. I set my current locale to French and can reproduce the issue.
0 Kudos
Marie-GilSeptfonds
New Contributor
JSAPI 2.4 solves this problem.
0 Kudos