On Dec 4, 2:45 pm, MRonline <[email protected]> wrote:
>
> the problem is, when loading the map, for each marker the doXY()
> function is called, but when clicking one it isn't, i get an error

  GEvent.addListener(temp, "click", doXY())
tells the browser to run doXY() and assign its result to the listener.
If you want to use the function itself there (rather than its result),
just use the name:
  GEvent.addListener(temp, "click", doXY)

Andrew

--

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