Re: bindInfoWindow with onOpenFn - Problem

2010-04-27 Thread Brian Kerr
ction(marker) {alert('you clicked marker'+marker.marker_id);}); return marker; On Apr 27, 1:06 pm, Brian Kerr wrote: > NOTE to others who must use bind: > > marker.bindInfoWindow(infoDiv,{onOpenFn: markerHit}); > Will not call the function for some reason, instead I had to a

Re: bindInfoWindow with onOpenFn - Problem

2010-04-27 Thread Brian Kerr
NOTE to others who must use bind: marker.bindInfoWindow(infoDiv,{onOpenFn: markerHit}); Will not call the function for some reason, instead I had to add a listener. marker.bindInfoWindow(infoDiv); GEvent.addListener(marker, "infowindowopen", markerHit); On Apr 27, 12:44 pm, Rossko wrote: > >

Re: bindInfoWindow with onOpenFn - Problem

2010-04-27 Thread Brian Kerr
Thanks, It was pretty apparent that was happening... I just hoped there was a little easier way to go about it. Any quick tip on how to snag what marker was clicked from the function? Brian On Apr 27, 1:14 am, Rossko wrote: > >         marker.bindInfoWindow(infoDiv,{onOpenFn: markerHit(marker_

bindInfoWindow with onOpenFn - Problem

2010-04-26 Thread Brian Kerr
Following other posts, my createMarker uses bindInfoWindow to add the html to the infoWindow after a call is made to a jQuery star rating system. I also need to call a "hit counter" function once the infoWindow is open, markerHit(). Syntax looked fine, however it is calling markerHit() for each mar