Mercelo,
Thanks a lot. I will try it your way when I get the other way to work.
Yours seems more simple. I suppose for each HTML link there is a
number as you say. Then the number in the code of the marker goes
where? Here? myMarkers.push(1,2,3 etc)

On Sep 4, 3:17 pm, marcelo <[EMAIL PROTECTED]> wrote:
> You need to keep references to all the markers in an array in the
> global scope, and then use those references to trigger the click
> event.
>
> 1. Create an array that is global, defined outside of the function
> initialize()
>
> var myMarkers = Array();
>     function initialize() {
>       if (GBrowserIsCompatible()) {
> ...
>
> 2. add each marker to that array and keep track of the index number.
>
> var marker = createMarker( ...
> myMarkers.push(marker)
>
> 3. Then create your html links like this:
> <a href="#" onclick="function()
> {GEvent.trigger(myMarkers[3],'click');return false;}">Link to marker
> 3</a>
>
> --
> Marcelo -http://maps.forum.nu
> --
--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google Groups 
"Google Maps API" 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-Maps-API?hl=en
-~----------~----~----~----~------~----~------~--~---

Reply via email to