Re: bindInfoWindow with onOpenFn - Problem
> 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 google-maps-api@googlegroups.com.
To unsubscribe from this group, send email to google-maps-api+unsubscribe@googlegroups.com.
For more options, visit this group at http://groups.google.com/group/google-maps-api?hl=en.
0 Comments:
Post a Comment
Subscribe to Post Comments [Atom]
<< Home