1

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?

vale4674
  • 4,161
  • 13
  • 47
  • 72

1 Answers1

-1

Can you make the directionsPanel div invisible?

Eugene Osovetsky
  • 6,443
  • 2
  • 38
  • 59
  • yes I did but then I have this: http://img43.imageshack.us/img43/6913/gmapsk.jpg . It is sure better but I would like if I could not have that empty space under page footer. If i set size of the div to 1px it makes no difference because it resizes automatically on size it needs. Hmmm. – vale4674 Dec 07 '10 at 14:50
  • 1
    How did you hide it? If you use "display:none" it should not take up any space, see http://www.w3schools.com/css/css_display_visibility.asp – Eugene Osovetsky Dec 08 '10 at 01:50
  • Also, have you tried just passing null to the 2nd GDirections parameter? – Eugene Osovetsky Dec 08 '10 at 01:54
  • null parameter is not working. display:none is the right way, thank you! – vale4674 Dec 08 '10 at 18:24