Google Maps API: Directions don't minding if street is one way or not
-
09-10-2019 - |
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?
Solution
Can you make the directionsPanel div invisible?
Licensed under: CC-BY-SA with attribution
Not affiliated with StackOverflow