Question

I want to draw direction from point A to B to C to D to ..... and I want to see only the map with directions (without text directions next to it)

Problem is if I use G_TRAVEL_MODE_DRIVING it displays me directions minding if the street is one way or not.

If I use G_TRAVEL_MODE_WALKING it shows me the directions the way I want but this mode requires derectionsPanel in constructor (this is a div element to show directions in textual format)

new GDirections(map, directionsPanel);

So I'm stuck in here. Suggestions?

Was it helpful?

Solution

Can you make the directionsPanel div invisible?

Licensed under: CC-BY-SA with attribution
Not affiliated with StackOverflow
scroll top