Ticket #1263 (closed defect: fixed)

Opened 3 years ago

Last modified 11 months ago

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

error.png Download (283.9 KB) - added by rflorez 3 years ago.
scale with error
scale_ok.jpg Download (109.1 KB) - added by rflorez 3 years ago.
scales ok
mapframe.diff Download (0.6 KB) - added by rflorez 3 years ago.
mapframe.patch Download (0.6 KB) - added by rflorez 3 years ago.

Change History

Changed 3 years ago by rflorez

scale with error

Changed 3 years ago by rflorez

scales ok

Changed 3 years ago by rflorez

  • milestone set to 2.2

Changed 3 years ago by zspitzer

Can you attach a patch for this?

Changed 3 years ago by rflorez

Changed 3 years ago by rflorez

Changed 3 years ago by tomfukushima

  • cc marswu added

Changed 3 years ago by tomfukushima

  • cc wuma added; marswu removed

Changed 3 years ago by tomfukushima

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

Changed 2 years ago by zspitzer

  • keywords haspatch added

Changed 12 months ago by jng

  • milestone changed from 2.2 to 2.4

Changed 11 months ago by jng

  • status changed from new to closed
  • resolution set to fixed

Fixed trunk: r6795

Fixed 2.4 branch: r6792, r6793, r6794

Note: See TracTickets for help on using tickets.