[mapguide-internals] wrong scale values

Jason Birch jason at jasonbirch.com
Fri Feb 5 15:34:37 EST 2010


Do you think that this is a problem only for locales that use a comma as the
decimal separator, or is it a general bug?

Could you please submit a Trac ticket for this problem and solution, and add
any notes there so it doesn't get lost?

http://trac.osgeo.org/mapguide/wiki/SubmitTicket

Jason

On 5 February 2010 11:37, rflorez <rodolfoflorez at hotmail.com> wrote:

>
> When using static layers (tiles maps), the ajax viewer (in mapframe.aspx
> file) generates a list of scales with a string using "," instead of "." as
> decimal separator. Javascript not properly recognize the value of the
> scales
> and do not use the decimal part.
>
> This is a problem when have static and dynamics layers together because the
> dynamic layer is generated with different scale
>
> http://n2.nabble.com/file/n4521707/error.png
>
>
> this is the code:
> scales.Sort();
> for(int i = 0; i < scales.Count; i++)
> {
>    scaleCreationCode = scaleCreationCode + "scales[" + i + "]=" + scales[i]
> + "; ";
> }
>
>
> //I add this line
> scaleCreationCode = scaleCreationCode.Replace(",", ".");
>
>
> this is the result:
>
>
> http://n2.nabble.com/file/n4521707/scale_ok.jpg
> --
> View this message in context:
> http://n2.nabble.com/wrong-scale-values-tp4521707p4521707.html
> Sent from the MapGuide Internals mailing list archive at Nabble.com.
> _______________________________________________
> mapguide-internals mailing list
> mapguide-internals at lists.osgeo.org
> http://lists.osgeo.org/mailman/listinfo/mapguide-internals
>


More information about the mapguide-internals mailing list