If you look at the LocalSearch control documentation, you can find some example code which will shed some light on the nature of the arguments passed to the onGenerateMarkerHtmlCallback and onMarkersSetCallback functions. Here is the breakdown:
onGenerateMarkerHtmlCallback: marker - the marker object, which can be used to change a marker icon, etc. html - the original html that the API has already generated for the marker. Add, subtract, or replace this and return it to alter what the info window for the given marker will say. result - the result object that the marker and html belong to. You can use it to obtain and display other information about the search result. Hope that helps. 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 Sep 1, 2009, at 10:52 AM, O View wrote: > > Hello Jeremy. > > Thanks for your considerations. > > I had already checked out the doc sources you gave me , but could not > find further information on the return parameters involved on each > callback function we specify as options, when creating a LocalSearch > instance(found stuff like parameter ´a´ in the examples...not knowing > what type it was... besides other names that gave no clue on the param > type) . I used the ones provided in the doc code playground , but kind > of navigated in the dark... :-( > > Concerning the question on the results, yes, I want to clear them > (both list and markers) ... as if I had clicked on the 'clear results' > link on the map GoogleBar. > > Best regards, > > Fábio > > On 1 set, 11:22, O View <[email protected]> wrote: >> Hi. >> Could anyone please tell me if there are any differences at all >> between google.elements and google.maps LocalSearch class ? I see >> examples using both of them and it seems they are the same... Is that >> right ? >> Additionally , I´m trying to clean up the search match list , >> displayed on the Google Search Bar I embedded on the map. Is there >> any >> method I can invoke so I can clean up the list and all the markers >> displayed for this particular search ? >> Is there any compreensive documentation on the response object and >> all >> callback parameters for onSearchCompleteCallback, >> onGenerateMarkerHtmlCallback, etc... events ? >> Thanks in advance, >> >> Fábio > > --~--~---------~--~----~------------~-------~--~----~ 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 -~----------~----~----~----~------~----~------~--~---
