Opened 7 years ago

Closed 7 years ago

#1474 closed defect (fixed)

Properties don't show up in Ajax viewer

Reported by: gBecker Owned by: jng
Priority: high Milestone: 2.2
Component: AJAX Viewer Version: 2.2.0
Severity: blocker Keywords:
Cc: trevorwekel External ID:

Description

Properties don't show up in Ajax viewer on servers with localized OS.

I've encountered double values with german localization in the responseText of the ajax call in line 3881 mapframe.aspx . It uses a comma as separator instead of a dot (or is it point?). This causes an error on evaluating the responseText (json) in line 3886:

var resp = eval('(' + respText + ')');

This is the content of respText:

{"flurstuecksflaechen" : [{"values" : [{"name" : "FLUR", "value" : "46" },{"name" : "GKNZ", "value" : "499" },{"name" : "NENNER", "value" : "1" },{"name" : "ZAEHLER", "value" : "37" }], "zoom" : {"x" : 3472889,12982542, "y" : 5560257,77589747}}]}

Have a look at the x- and y-coordinate of the zoom parameter!

So the solution to this problem would be to always return numbers with an unlocalized format (always dot/point).

Attachments (4)

getselectedfeaturesaspx.patch (682 bytes) - added by jng 7 years ago.
getselectedfeaturesphp.patch (1.0 KB) - added by jng 7 years ago.
getselectedfeaturesjsp.patch (622 bytes) - added by jng 7 years ago.
getselectedfeaturesaspx.2.patch (654 bytes) - added by jng 7 years ago.

Download all attachments as: .zip

Change History (6)

comment:1 Changed 7 years ago by jng

Cc: trevorwekel added
Owner: set to jng
Severity: criticalblocker

Given that the 2.2 release is meant to showcase this new feature (multiple property display), I think this issue is severe enough to block the final release.

Changed 7 years ago by jng

Changed 7 years ago by jng

Changed 7 years ago by jng

Changed 7 years ago by jng

comment:2 Changed 7 years ago by jng

Resolution: fixed
Status: newclosed

Fixed 2.2 (r5317) Fixed Trunk (r5318)

Note: See TracTickets for help on using tickets.