Thanks. parseFloat fixed it. Martin Morrison Application Engineer Engineering Design Systems, Inc. 3780 Peters Creek Rd Ext SW Roanoke, VA 24018 540.345.1410 gis.edsi.com
-----Original Message----- From: [email protected] [mailto:[email protected]] On Behalf Of Gabriele Monfardini Sent: Wednesday, March 16, 2011 12:46 PM To: MapGuide Users Mail List Subject: Re: [mapguide-users] RE: ZoomToView function breaks session Hi all, > I had a similar problem. For some reason if I didn't enclose the coordinates > in quotes, like this: > > parent.parent.ZoomToView(11516002.190242026, 3400692.2790488531, 2000.0, > true); > > the problem went away. function ZoomToView seems to be picky about the type of its arguments. I suggest you to always use parseFloat(your_coord) and a check on the result before passing values to the function Regards, Gabriele Monfardini _______________________________________________ mapguide-users mailing list [email protected] http://lists.osgeo.org/mailman/listinfo/mapguide-users
_______________________________________________ mapguide-users mailing list [email protected] http://lists.osgeo.org/mailman/listinfo/mapguide-users
