[mapguide-trac] #1474: Properties don't show up in Ajax viewer

MapGuide Open Source trac_mapguide at osgeo.org
Tue Oct 19 04:23:55 EDT 2010


#1474: Properties don't show up in Ajax viewer
---------------------------+------------------------------------------------
   Reporter:  gBecker      |       Owner:       
       Type:  defect       |      Status:  new  
   Priority:  high         |   Milestone:  2.2  
  Component:  AJAX Viewer  |     Version:  2.2.0
   Severity:  critical     |    Keywords:       
External_id:               |  
---------------------------+------------------------------------------------
 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).

-- 
Ticket URL: <http://trac.osgeo.org/mapguide/ticket/1474>
MapGuide Open Source <http://mapguide.osgeo.org/>
MapGuide Open Source Internals


More information about the mapguide-trac mailing list