Google Maps API - too much recursion / Maximum call stack size exceeded

309 views
Skip to first unread message

conualfy

unread,
Feb 3, 2012, 1:22:46 AM2/3/12
to google-visua...@googlegroups.com
Hello!

I'm trying to, create a PolyLine in Google Maps API v3.

I have a set of data that works, and one that it doesn't.
This one works:
data2 = '[{"lat":"45.74917000000001","lng":" 21.199520000000003"},{"lat":"45.74965","lng":" 21.20257"}]';
//it works, I get the polyline
var routePointsObject = jQuery.parseJSON(data2);//F: facem un test cu o linie aiurea

This one does not. I have no idea what is the real difference and why it does not work.
data2 = '[{"lat":"45,74521","lng":" 21,20206"},{"lat":"45,74609","lng":" 21,20504"}]';
//Too much recursion (Firebug) / Uncaught RangeError: Maximum call stack size exceeded (Chrome)
var routePointsObject = jQuery.parseJSON(data2);


Is there some rule for picking the coordinates? I just chose 2 points in Google Maps, in the same area with the ones that work.

Thank you,
F.

asgallant

unread,
Feb 3, 2012, 9:09:20 AM2/3/12
to google-visua...@googlegroups.com
You will probably get better results asking in the Maps forum: http://code.google.com/apis/maps/documentation/javascript/forum.html

conualfy

unread,
Feb 3, 2012, 10:02:01 AM2/3/12
to google-visua...@googlegroups.com
Thanks! I'll post it there.
Reply all
Reply to author
Forward
0 new messages