Opened 8 years ago

Closed 5 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

http://n2.nabble.com/file/n4521707/scale_ok.jpg

Attachments (4)

error.png (283.9 KB) - added by rflorez 8 years ago.
scale with error
scale_ok.jpg (109.1 KB) - added by rflorez 8 years ago.
scales ok
mapframe.diff (636 bytes) - added by rflorez 7 years ago.
mapframe.patch (644 bytes) - added by rflorez 7 years ago.

Download all attachments as: .zip

Change History (12)

Changed 8 years ago by rflorez

Attachment: error.png added

scale with error

Changed 8 years ago by rflorez

Attachment: scale_ok.jpg added

scales ok

comment:1 Changed 8 years ago by rflorez

Milestone: 2.2

comment:2 Changed 7 years ago by zspitzer

Can you attach a patch for this?

Changed 7 years ago by rflorez

Attachment: mapframe.diff added

Changed 7 years ago by rflorez

Attachment: mapframe.patch added

comment:3 Changed 7 years ago by tomfukushima

Cc: marswu added

comment:4 Changed 7 years ago by tomfukushima

Cc: wuma added; marswu removed

comment:5 Changed 7 years ago by tomfukushima

Patch is for .NET, but the "same" patch will probably need to be applied to PHP and Java.

comment:6 Changed 7 years ago by zspitzer

Keywords: haspatch added

comment:7 Changed 6 years ago by jng

Milestone: 2.22.4

comment:8 Changed 5 years ago by jng

Resolution: fixed
Status: newclosed

Fixed trunk: r6795

Fixed 2.4 branch: r6792, r6793, r6794

Note: See TracTickets for help on using tickets.