[mapguide-users] RE: ZoomToView function breaks session

Martin Morrison martin.morrison at edsi.com
Wed Mar 16 13:11:50 EDT 2011

Thanks.  parseFloat fixed it.

Martin Morrison
Application Engineer
Engineering Design Systems, Inc.
3780 Peters Creek Rd Ext SW
Roanoke, VA  24018

-----Original Message-----
From: mapguide-users-bounces at lists.osgeo.org [mailto:mapguide-users-bounces at lists.osgeo.org] 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


Gabriele Monfardini
mapguide-users mailing list
mapguide-users at lists.osgeo.org

More information about the mapguide-users mailing list