[mapguide-internals] wrong scale values

rflorez rodolfoflorez at hotmail.com
Fri Feb 5 14:37:44 EST 2010

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  


this is the code:
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:

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.

More information about the mapguide-internals mailing list