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
2010-04-28 19:03:46
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
2010-04-28 19:21:02
A:
//assuming markers is an array of markers on your map
jQuery(markers).each(function(i,marker){
.click(function(){
displayPoint(marker, i);
}
jini
2010-04-28 21:18:51