Hello @all,
I'm trying to implement GDirections to my Map.
The thing is that I've got my kml file, where I load my Waypoints from
and there are approx. 2500 Waypoints.
I use this code:
var gdir = new GDirections(map);
GEvent.addListener(gdir, "error", handleErrors);
var dirArr = Array(
new GLatLng(42.473160,14.210880),
new GLatLng(42.473370,14.211200),
new GLatLng(42.473499,14.211270),
new GLatLng(42.473499,14.211270),
new GLatLng(42.480419,14.201110),
new GLatLng(42.483509,14.196620)
... and so on
);
gdir.loadFromWaypoints(dirArr,"en_US");
GEvent.addListener(gdir,"load", function() {
var poly=gdir.getPolyline();
poly.color = "#FF0000";
poly.redraw(true);
});
so if have my 2500 waypoints in the "dirArr" Array, the map is showing
up but he doesn't show any waypoints or lines, he doesn't even show
any error - like he should.
If I reduce my waypoints to 50 than he shows the Error 400 (A
directions request could not be successfully parsed) - on the "my
maps" section on googlemap website this is working.
So is there a limit for this "dirArr" Array or am I doing something
wrong here?
Thanks very mutch in advance
Best regards - Misha
--
You received this message because you are subscribed to the Google Groups
"Google Maps API V2" group.
To post to this group, send email to [email protected].
To unsubscribe from this group, send email to
[email protected].
For more options, visit this group at
http://groups.google.com/group/google-maps-api?hl=en.