[mapguide-users] Re: Problem to show properties in Ajax viewer with ver. 2.2.0.5197

Gunter Becker gunter.becker at csogis.de
Thu Oct 21 10:19:56 EDT 2010


Hi Jackie,

your last post let me realize that the problem is in
getselectefeatures.aspx. So it was not so hard to change the code. I changed
line 231 from:

sb.Append("{\"x\" : " + feat.Zoom.X + ", \"y\" : " + feat.Zoom.Y + "}");

to:

sb.Append("{" + String.Format(CultureInfo.InvariantCulture, "\"x\" : {0},
\"y\" : {1} ", feat.Zoom.X, feat.Zoom.Y) + "}");

This works for me and always returns the coordinates with a dot as decimal
separator. Please have a look at it! 

Gunter
-- 
View this message in context: http://osgeo-org.1803224.n2.nabble.com/Problem-to-show-properties-in-Ajax-viewer-with-ver-2-2-0-5197-tp5611272p5658843.html
Sent from the MapGuide Users mailing list archive at Nabble.com.


More information about the mapguide-users mailing list