GMap 3 - driving directions in popup window
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 wind开发者_开发问答ow. Thanks in advance.
Steve
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')
精彩评论