Ticket #1263 (closed defect: fixed)
wrong scale values with tiles maps
| Reported by: | rflorez | Owned by: | |
|---|---|---|---|
| Priority: | medium | Milestone: | 2.4 |
| Component: | AJAX Viewer | Version: | 2.1.0 |
| Severity: | major | Keywords: | haspatch |
| Cc: | wuma | External ID: |
Description
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

