I was having trouble with binding InfoWindows to markers. No matter which marker was clicked, the InfoWindow for the last marker to be created was displayed. I found the answer to the problem here:
http://stackoverflow.com/questions/2357323/trying-to-bind-multiple-infowindows-to-multiple-markers-on-a-lgoogle-map-and-fail
Simply creating a separate function to add the event listener solved the problem.
This comment has been removed by the author.
ReplyDeleteI too wrote on the similar topic. Hope that too helps
ReplyDeleteHow to locate multiple addresses on google maps with perfect zoom