In the Measure.js file, change the following occurrences of <br>
<br>
distance.toPrecision(distPrecision);<br>
totalDistance.toPrecision(this.distPrecision);<br>
value.toPrecision(this.areaPrecision);<br>
this.quantity.toPrecision(this.precision);<br>
<br>
to <br>
<br>
distance.toFixed(distPrecision);<br>
totalDistance.toFixed(this.distPrecision);<br>
value.toFixed(this.areaPrecision);<br>
this.quantity.toFixed(this.precision);<br>
<br>
<br>
Cheers,<br>
<br>
Kori Maleski<br><br><div class="gmail_quote">On Mon, Feb 22, 2010 at 7:57 AM, Mike Adair <span dir="ltr"><<a href="mailto:madair@dmsolutions.ca">madair@dmsolutions.ca</a>></span> wrote:<br><blockquote class="gmail_quote" style="border-left: 1px solid rgb(204, 204, 204); margin: 0pt 0pt 0pt 0.8ex; padding-left: 1ex;">
Alan,<br>
<br>
That should be controlled by a <DistancePrecision> (or <AreaPrecision>) element in the Measure widget extension. If that doesn't work, then the output for that is generated in the getQuantityLabel method around line 657 of Measure.js<br>
<br>
Mike<div class="im"><br>
<br>
Alan Boudreault wrote:<br>
<blockquote class="gmail_quote" style="border-left: 1px solid rgb(204, 204, 204); margin: 0pt 0pt 0pt 0.8ex; padding-left: 1ex;">
Hi,<br>
<br>
Is there a way to get a better display of the unit ? In an application, we got something like: "3: 4.634e+6 m". We still want the measure in meters.<br>
<br>
thanks,<br>
Alan<br>
<br>
<br>
</blockquote>
<br>
-- <br></div>
Michael Adair<br>
Senior Software Architect<br>
DM Solutions Group Inc.<br>
<br>
Office: (613) 565-5056 x26<br>
<a href="mailto:madair@dmsolutions.ca" target="_blank">madair@dmsolutions.ca</a><br>
<a href="http://www.dmsolutions.ca" target="_blank">http://www.dmsolutions.ca</a><br>
<a href="http://research.dmsolutions.ca" target="_blank">http://research.dmsolutions.ca</a><div><div></div><div class="h5"><br>
<br>
<br>
_______________________________________________<br>
fusion-users mailing list<br>
<a href="mailto:fusion-users@lists.osgeo.org" target="_blank">fusion-users@lists.osgeo.org</a><br>
<a href="http://lists.osgeo.org/mailman/listinfo/fusion-users" target="_blank">http://lists.osgeo.org/mailman/listinfo/fusion-users</a><br>
</div></div></blockquote></div><br>