Ralf,

Your question is a great Ajax-type question, if you are wanting to
send this click data to a server some place.  You know where this code
codes, based on yours and Ross's responses above.  The actual code
itself has nothing to do with the Google Maps API, and would be more
appropriate to discuss in a Javascript or Ajax group.

Good luck!
-Mike

On Aug 10, 3:03 pm, Rossko <[email protected]> wrote:
> > How do I get the clicks of every single marker?
>
> >       Something like:  GEvent.addListener(marker[i], 'click', function
> > () {
> >       .....
>
> Yes.
> What you could do is store the click count in your own custom
> attribute of the marker object
>   marker.myClickCount++;
>
> > and don't I have to write it somewhere (e.g. Databank or Google
> > Spreadsheet), when I want a statistic for a longer period?
>
> Well, yes.  You didn't mention that bit.   Perhaps you could write a
> function triggered on page unload to iterate through your markers/
> objects and upload your counts to your store.  I've no idea how you
> write data to those things.
>
> cheers, Ross K
--~--~---------~--~----~------------~-------~--~----~
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