Re: events with markermanager
On Dec 4, 2:45 pm, MRonline <MarkusRie...@online.de> 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 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