>         marker.bindInfoWindow(infoDiv,{onOpenFn: markerHit(marker_id)});

This will evaluate markerHit(x) at the time you call bindInfoWindow,
and use the _results_ as the onOpenFn.

Try
     marker.bindInfoWindow(infoDiv,{onOpenFn: markerHit});
which will instead use the function.
You'll have to modify markerHit to determine which marker was clicked.

-- 
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.

Reply via email to