views:

60

answers:

2

I want to display a pop up box when a visitor clicks on my google map marker. I already have the text I want to display when they click the marker.

+1  A: 

If you are working with a Google Maps instance, they already have conventions for that.

Peter Bailey
Also, this is covered in the very first tutorial: http://code.google.com/apis/maps/articles/yourfirstmap.htmlIf you use v3 API, here's the demo: http://code.google.com/apis/maps/documentation/v3/examples/infowindow-simple.html
ghoppe
A: 

//assuming markers is an array of markers on your map

jQuery(markers).each(function(i,marker){

.click(function(){

    displayPoint(marker, i);

}
jini