> Start herehttp://econym.org.uk/gmap/
> for example part 10

I actually was just looking at that. The code I have now is as
follows:

 function addMarker(latitude, longitude, description) {
       var marker = new GMarker(new GLatLng(latitude, longitude));

       GEvent.addListener(marker, 'click',
           function() {
              marker.openInfoWindowHtml(description);

         }
     );

      map.addOverlay(marker);
 }

for(id in markers){
             addMarker(markers[id].latitude, markers[id].longitude,
markers[id].name)
}

In a separate file map_data.php I have an array of different markers
that contains the Lat Long and the description. I see from the example
above that you can make an array of tabs and then assign them to open
with an action listener but Im wanting to assign the tabs within my
array of markers is that possible? Will I have to make each marker
individually assign it its tabs and listeners? Im trying to make my
code as short as possible.

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