There are a number of ways that you can do this, but it will all depend on how you're implementing your page, and how flexible you want the thing to be. Unfortunately, I think that simply writing the code for you is probably beyond the scope of free help, but you should be able to glean the basic principles you'll need through the Search API and Maps API documentation and the API Playground.
Search API docs http://code.google.com/apis/ajaxsearch/documentation http://code.google.com/apis/ajaxsearch/documentation/reference.html Maps API docs http://code.google.com/apis/maps/documentation http://code.google.com/apis/maps/documentation/reference.html API Playground http://code.google.com/apis/ajax/playground/?exp=search http://code.google.com/apis/ajax/playground/?exp=maps Basically, what you're going to want to do is initialize a LocalSearch object, set its center point to your map, and set a search complete callback that will loop through the results and put markers on the map. You can then add onclick listeners to your links that will execute the searcher with the appropriate search string. Jeremy R. Geerdes Effective website design & development Des Moines, IA For more information or a project quote: http://jgeerdes.home.mchsi.com http://jgeerdes.blogspot.com http://jgeerdes.wordpress.com [email protected] Unless otherwise noted, any price quotes contained within this communication are given in US dollars. If you're in the Des Moines, IA, area, check out Debra Heights Wesleyan Church! And check out my blog, Adventures in Web Development, at http://jgeerdes.blogspot.com ! On May 15, 2009, at 6:59 AM, Larrr wrote: > > Hello there! I'm pretty new in maps API, so my question could be > trivial. But I didn't find anything that solves my task on Google maps > API page. > > I need to implement limited map search on map via labels (no > LocalSearch box). > > For example, > > I have 2 categories: Restaurants and Shops - both as links on the > page. > > When I click on some category, I want to achieve same functionality as > search 'category:"shop"' request. > > How to do that? > > PS. I has the same issue with cities, but it solved using > GClientGeocoder getLocations() method. But I can't see similar method > for the search functionality. > > > --~--~---------~--~----~------------~-------~--~----~ 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 -~----------~----~----~----~------~----~------~--~---
