Hey James -- What you're asking for would require you to write your own custom code. What you would do is use the base Javascript LocalSearch searcher, or the REST URL, and do a search for gas stations, restaurants, hotels, etc. Then, with the response, you would draw the results to the page, and place the markers on the map.
http://code.google.com/apis/ajax/playground/#localsearch_with_markers This sample shows how to do a LocalSearch and then add the markers to the map. This will be similar to what you want to do, but you would have to modify this a fair amount to be exactly what you want. For instance, instead of using the SearchControl to do the search, you would want to just do a plain LocalSearch without the control (that way you could draw the results yourself). You would also want to make multiple instances of the LocalSearch, so you could do multiple queries for restaurants, hotels etc. Lastly, you would want to draw the results to the map the way that you want, including adding your own info menus etc. -Ben On Apr 21, 12:53 pm, James <[email protected]> wrote: > Hello All, > > I have the google local search working as a control on my map. > > http://dirtlink.net/dcce/track.php?track_id=30 > > However, I am having a hard time integrating it into another section > of my page. If you look at my page, you'll see a section called > Amenities, which I want to have links for things like > > gas stations, restaurants, hotels, etc. > > Ideally a person would click on this link, and it would submit the > data to google and then populate the map with all the search results, > for example, the closest gas statiosn. And thhe amenities tab would > also list the results, like it does not as an overlay on the map. > > Any ideas?? I have been in the code playground for a few hours and I > cant get it to work... > > James --~--~---------~--~----~------------~-------~--~----~ You received this message because you are subscribed to the Google Groups "Google AJAX APIs" group. To post to this group, send email to [email protected] To unsubscribe from this group, send email to [email protected] For more options, visit this group at http://groups.google.com/group/Google-AJAX-Search-API?hl=en -~----------~----~----~----~------~----~------~--~---
