[mapguide-users] RE: ZoomToView function breaks session
Gabriele Monfardini
gabrimonfa at gmail.com
Wed Mar 16 12:46:23 EDT 2011
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
More information about the mapguide-users
mailing list