Here is the code - http://vince.netau.net
Currently when you click on a marker, a clickable get directions link comes up along with title and address. I would instead like the get directions link instead to appear on the sidebar.
I tried to move from here:
html: locations[i][0]+"<br>"+locations[i][1]+"<br><br><a href='javascript:getDirections(customerMarker.getPosition(),""+locations[i][1]+"");'>Get Directions</a>"
to here:
outputDiv.ierHTML += "<a href='javascript:google.maps.event.trigger(closest[" + results[i].idx_closestMark + "],"click");'>" + results[i].title + '</a><br>' + results[i].address + "<br>" + results[i].distance.text + ' approximately ' + results[i].duration.text + "<br><a href='javascript:getDirections(customerMarker.getPosition(),""+locations[i][1]+"");'>Get Directions</a><br><hr>"
I'm able to have the get directions link appear in the sidebar, however the directions don't match up to correct title and address like they do from the marker. Anyone know how to fix this?
Thanks
