Martus0
Martus0

Reputation: 677

How to customize google maps directions not to show waypoints

My problem is that waypoints are highlighted in directions list like: start to waypoint 1, waypoint 1 to waypoint 2, ...

here is an example how it is looking: http://www.ridersguide.co.uk/Ride_721

I'd like to show start and instructions how to reach destination points without showing waypoints.

Do you have some idea?

Upvotes: 1

Views: 5027

Answers (3)

Allen Lin
Allen Lin

Reputation: 1209

@Ramesh K's answer is generally correct. However, in this way, you also kill the marker of start point and end point. You need to create to marker by yourself then.

Upvotes: 0

Ramesh Kotha
Ramesh Kotha

Reputation: 8322

you can supress the markers with these settings

 var directionsDisplay = new google.maps.DirectionsRenderer({
            suppressMarkers: true,
            suppressInfoWindows: true,

       }); 

Upvotes: 6

corn3lius
corn3lius

Reputation: 4985

I think you have the defaults in the Waypoint for your api calls.

Look here for a suggestion to remove waypoints as a 'layover' in your trip

Upvotes: -1

Related Questions