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