[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  

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.


More information about the mapguide-internals mailing list