views:

103

answers:

0

Hello, I am using the LocalSearch control in my Google Map API. Here is a link to an example of what I have so far:

http://code.google.com/apis/ajax/playground/?exp=maps#map_control_localsearch

Now, I would like to "grab" each result from the LocalSearch when ever I click on a item. So if my search returned 2 results, I would like to get the (Address, state, country etc.) when ever I click on each result and display that data in a alert box instead of the popupInfoBox that is displayed by default on the map.

I am having trouble modifying the javascript to do that so any help would be appreciated!

Thank you