On Mar 17, 7:44 am, Layla <[email protected]> wrote:
> Hi,
>
> I'm trying to load directions from waypoints on my map using
> loadFromWaypoints. My waypoints are specified in an array. The
> function does the job perfectly fine. However, I need to snap each
> waypoint to the nearest street first and then load direction between
> these new points.
>
> I'm using something like this code:
>

??? why not follow the posting guidelines so we can see the actual
code ???

> which works fine as it is, but in my case points are defined in
> advance, so the click event on map is not used in my case.
> I'm using the loadFromWaypoints code in a loop, gets to the first
> point but for the next point an error occurs saying gmarkers[...] is
> null or not an object.
>
> can anyone help me please.

Follow the posting guidelines and post a link to your map that shows
the problem and someone might be able to.

http://groups.google.com/group/google-maps-api/web/suggested-posting-guidelines
http://groups.google.com/group/Google-Maps-API/web/why-including-a-link-is-critical

  -- Larry


>
> thank you

-- 
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.

Reply via email to