Two things. First, uncomment the click listener on your div. And then  
change the object that you're triggering the event on to  
marker.marker, as below:

GEvent.trigger(marker.marker, 'click');

The documentation is confusing here because it uses the variable  
"markers" as the argument when, in reality, you're not being handed  
the marker but the array of undocumented LocalResult objects.

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 Apr 16, 2009, at 12:17 AM, thedude wrote:

>
> Any word on this before I move onto and suppressing the eight auto
> generated markers and create the markers (and their listeners) in a
> call back function by hand?
>
> On Apr 14, 11:57 pm, thedude <[email protected]> wrote:
>> In local search, I query and display the eight results on the map and
>> I create my own, custom, info window through the onMarkersSetCallback
>> option.
>>
>> In markersSet, I create and append eight info divs by hand to my elem
>> container just fine. What I am having trouble doing is attaching a
>> listener to each info div so that on click, the corresponding marker
>> on the map opens up.
>>
>> What's the best way to approach this? I've linked to the pertinent
>> code, let me know if more is needed.http://guyposts.com/js/snip.js
> >


--~--~---------~--~----~------------~-------~--~----~
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
-~----------~----~----~----~------~----~------~--~---

Reply via email to