Hello Mike,

I know it. The problem is that I have a list of elements that i show
in the map, and i need to query this list on other form and later show
this info window on the map. I think that the only solution is create
other array and when a new element of the query come to the function,
try to find it into the new array and if is no there introduce them.

¡ Thank you Mike !

On 20 oct, 21:17, Mike Williams <[EMAIL PROTECTED]> wrote:
> Markers aren't simple HTML Elements, you can't reference then by
> documentetElementById()
>
> What you have to do is store the references when you create them, e.g.
>
> var gmarkers = [];
>
> for (...) {
>   var marker = createMarker(...);
>   map.addOverlay(marker);
>   gmarkers.push(marker);
>
> }
>
> Then you can write
>
> <INPUT value="one" type="button"
>   onclick="GEvent.trigger(gmarkers[0],'click');"/>
>
> Or, if you've only got a few markers
>
>   var marker1 = createMarker(...);
>   map.addOverlay(marker1);
>
>   var marker2 = createMarker(...);
>   map.addOverlay(marker2);
>
>   var marker3 = createMarker(...);
>   map.addOverlay(marker3);
>
> <INPUT value="one" type="button"
>   onclick="GEvent.trigger(marker1,'click');"/>
>
> --http://econym.org.uk/gmap
> The Blackpool Community Church Javascript Team
--~--~---------~--~----~------------~-------~--~----~
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