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 <[email protected]> wrote:
> > 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?
>
> I'm not at all familiar with bindings, I would go at it some other way
> to get function closure. What would 'this' be in the context, the
> infowindow? Perhaps someone else can advise.
>
> --
> 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
> athttp://groups.google.com/group/google-maps-api?hl=en.
--
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.