Opened 15 years ago
Closed 13 years ago
#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
Attachments (4)
Change History (12)
by , 15 years ago
comment:1 by , 15 years ago
Milestone: | → 2.2 |
---|
by , 14 years ago
Attachment: | mapframe.diff added |
---|
by , 14 years ago
Attachment: | mapframe.patch added |
---|
comment:3 by , 14 years ago
Cc: | added |
---|
comment:4 by , 14 years ago
Cc: | added; removed |
---|
comment:5 by , 14 years ago
Patch is for .NET, but the "same" patch will probably need to be applied to PHP and Java.
comment:6 by , 14 years ago
Keywords: | haspatch added |
---|
comment:7 by , 13 years ago
Milestone: | 2.2 → 2.4 |
---|
scale with error