Thanks for the reply.
I don't know if I have understood you, I try to do this but never go
to listener method load:
var tempb=[];
for (i = 0; i < old_points_lat.length; i ++)
{
var point = new GLatLng(old_points_lat[i],old_points_lng[i]);
temp[i]=point.toUrlValue();
if (i>0)
{
tempb[0]=temp[i-1];
tempb[1]=temp[i];
var directions = new GDirections();
directions.loadFromWaypoints(tempb,
{'getPolyline':true});
GEvent.addListener(directions, 'load', function() {
var gp= directions.getPolyline();
}
}
}
This should work? Thanks.
On 30 nov, 15:47, Mike Williams <[email protected]> wrote:
> Wasn't it molistok who wrote:
>
>
>
> >Thanks for the reply.
> >Only one question more, only 5 iterations? For example, if total is >
> >than 5, I won't do this?
>
> The number varies depending on how busy the Google server are at the
> time. I've not done a detailed study.
>
> --
> Mike Williamshttp://econym.org.uk/gmap
--
You received this message because you are subscribed to the Google Groups
"Google Maps API" 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.