Oops, wrong adress. This one is correct: http://www.einberg-volleyball.de/maps/test/directions2.shtml
On 15 Jan., 13:36, Jürgen <[email protected]> wrote: > I think I did give the map as the first parameter to the constructor. > However, I can't get it work properly without map.clearOverlays(). See > yourself:http://einberg/maps/test/directions2.shtml > > On 15 Jan., 13:18, marcelo <[email protected]> wrote: > > > > > Its because in the function onGDirectionsLoad() you're doing > > map.clearOverlays(). > > If you've given the map as the first parameter to the GDirections() > > constructor, you don't need to clearOverlays yourself. The GDirections > > object does it for you. > > > -- > > Marcelo -http://maps.forum.nu > > -- > > > On Jan 15, 11:43 am, Jürgen <[email protected]> wrote: > > > > I have a map where a user can request direction to a given place. > > > Suppose the first user request has a valid response and the directions > > > are displayed just fine. > > > > Then suppose he tries to calculate a non existing route and the > > > request fails. > > > > Now my problem: > > > When he tries again with an existing route, this route is not display > > > correctly. Meaning the polyline is not printed on the map and the user > > > can't click on the direction steps the view the usual blowup. However, > > > the map dimensions are adjusted as usual to show both ends of the > > > route plus the complete route. > > > > Everything is explained in detail > > > here:http://www.einberg-volleyball.de/maps/test/directions.shtml > > > > What am I doing wrong? Is there a workaround? > > > > Jürgen- Zitierten Text ausblenden - > > > - Zitierten Text anzeigen -- Zitierten Text ausblenden - > > - Zitierten Text anzeigen - --~--~---------~--~----~------------~-------~--~----~ 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 -~----------~----~----~----~------~----~------~--~---
