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 marker as they load onto the map, not on
window open... onCloseFn does the same...Thanks in advanced!
function createMarker(point, marker_id, act_id, html) {
var marker = new GMarker(point,gicons[act_id]);
var infoDiv = document.createElement('div');
infoDiv.innerHTML = html;
enableStars(infoDiv, marker_id);
marker.bindInfoWindow(infoDiv,{onOpenFn: markerHit(marker_id)});
return marker;
}
--
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.