开发者

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')
0

上一篇:

下一篇:

精彩评论

暂无评论...
验证码 换一张
取 消

最新问答

问答排行榜