Thanks a lot for your help, Mike.

I'm finally testing my applications with this code:

 function iniciar(){
      if (GBrowserIsCompatible()){
         var mapa = new GMap2(document.getElementById
("division_mapa"));
         mapa.addControl(new GSmallMapControl());
         directions = new GDirections(mapa);
         directions.load("from: New York, USA to: Anchorage");
         setTimeout("directions.getMarker(0).openInfoWindowHtml('Hola
mundo')",5000);
      }
   }

And now it's certainly working. However, I don't like having to wait
to open the window because I don't know how much time is required. How
many seconds would you wait for the GDirections call to complete?
Thanks again in advance!

On 26 ene, 12:47, Mike Williams <[email protected]> wrote:
> Wait for the GDirections call to complete, then use
> directions.getMarker() to obtain a reference to the markers.
>
> It's probably best to .hide() those markers and add your own markers in
> the same place with the info window content that you want. Just adding
> your own listeners that open your own info window would leave the
> markers with calls to create both the GDirections info window details
> and your info window details, so it might look odd as one info window
> pops up and gets immediately replaced by the other.
>
> --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