[mapguide-trac] #1263: wrong scale values with tiles maps
MapGuide Open Source
trac_mapguide at osgeo.org
Fri Feb 5 18:28:44 EST 2010
#1263: wrong scale values with tiles maps
---------------------------+------------------------------------------------
Reporter: rflorez | Owner:
Type: defect | Status: new
Priority: medium | Milestone:
Component: AJAX Viewer | Version: 2.1.0
Severity: major | Keywords:
External_id: |
---------------------------+------------------------------------------------
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(",", ".");
the result is in scale_ok.png
http://n2.nabble.com/file/n4521707/scale_ok.jpg
--
Ticket URL: <http://trac.osgeo.org/mapguide/ticket/1263>
MapGuide Open Source <http://mapguide.osgeo.org/>
MapGuide Open Source Internals
More information about the mapguide-trac
mailing list