1

I'm using the context-menu for GMap3 plugin to show the driving directions. The directions are displaying correctly.

However, I would like the results of the driving directions to appear in a popup window, instead of on the same page.

My guess would be to tweak the call to setDirections:

 $map.gmap3({ action: 'setDirections', directions:results});

...in a way that would support finding the div with the id of "directions" on the popup window. Thanks in advance.

Steve

skaffman
  • 398,947
  • 96
  • 818
  • 769
Steve
  • 23
  • 3

1 Answers1

0

Try this. Hide the result DIV with css display:none when the map is initialized. Change display:none to display:block when points are selected.

$('#directionspanel').css('display','block')
Taryn
  • 242,637
  • 56
  • 362
  • 405
KYLO
  • 93
  • 11