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

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

Attachments (4)

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

Download all attachments as: .zip

Change History (12)

by rflorez, 15 years ago

Attachment: error.png added

scale with error

by rflorez, 15 years ago

Attachment: scale_ok.jpg added

scales ok

comment:1 by rflorez, 15 years ago

Milestone: 2.2

comment:2 by zspitzer, 14 years ago

Can you attach a patch for this?

by rflorez, 14 years ago

Attachment: mapframe.diff added

by rflorez, 14 years ago

Attachment: mapframe.patch added

comment:3 by tomfukushima, 14 years ago

Cc: marswu added

comment:4 by tomfukushima, 14 years ago

Cc: wuma added; marswu removed

comment:5 by tomfukushima, 14 years ago

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

comment:6 by zspitzer, 14 years ago

Keywords: haspatch added

comment:7 by jng, 13 years ago

Milestone: 2.22.4

comment:8 by jng, 13 years ago

Resolution: fixed
Status: newclosed

Fixed trunk: r6795

Fixed 2.4 branch: r6792, r6793, r6794

Note: See TracTickets for help on using tickets.