Good morning everybody from Barcelona,

I'm pretty new to Google Maps API ;-) I'm using a GDirections object
to display a route on the screen and everything seems to work ok. The
case is that I would like to open a window when I clic on a marker (I
can do this when working with GMarker objects). How can I manipulate
the markers that the GDirection's load method automatically creates?
Thank you for your help in advance.

(I'm trying something like this):

function iniciar(){
      if (GBrowserIsCompatible()){
         var mapa = new GMap2(document.getElementById
("division_mapa"));
         mapa.addControl(new GSmallMapControl());
         directions = new GDirections(mapa);
         directions.load("from: Barcelona Rocafort 16 to: Barcelona
Valencia 10 to: Barcelona Urgell 8");
         GEvent.addListener(marker, "click", function()
{ marker.openInfoWindowHtml('¡Hola mundo!'); });
      }
   }


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