Try this

                var point = new GLatLng(51.33892341204783,
-2.310519218444824);
                var html = "Galleries Shop";
                var marker = createMarker(point,html)
                map.addOverlay(marker);
                
                var point = new GLatLng(51.335303953608346, -2.30712890625);
                var html = "Freshford Mill";
                var marker = createMarker(point,html)
                map.addOverlay(marker);
                
        
    }
   
 function createMarker(point,html) {
        var marker = new GMarker(point);
        GEvent.addListener(marker, "click", function() {
          marker.openInfoWindowHtml(html);
        });
        return marker;  
}

Ralph


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