http://tp.avtoturistu.ru/test.html
DirectionsRenderer draws the start and finish markers, but doesn't
connect them with a route (polyline). Text directions are displayed.

        directionsService = new google.maps.DirectionsService();
        dirDisplay = new google.maps.DirectionsRenderer();
        dirDisplay.setMap(map);
        dirDisplay.setPanel(document.getElementById('gmaps-dirs'));

        var request = {
                        origin: latlng1,
                        destination: latlng2,
                        travelMode: google.maps.DirectionsTravelMode.DRIVING
        };

        directionsService.route(request, function(result, status){
                if (status == google.maps.DirectionsStatus.OK)
                {
                        dirDisplay.setDirections(result);
                }
        });
}

What's wrong?

-- 
You received this message because you are subscribed to the Google Groups 
"Google Maps JavaScript API v3" 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-js-api-v3?hl=en.

Reply via email to