On Mar 31, 1:43 pm, surgeon <[email protected]> wrote: > Hi all! > > I populated my map onhttp://test.parkouraachen.de/?site=spotswith > Markers and I now want to define some actions, like a rollover effect.
What are you trying to do? > > In my code I always repeat a block for a marker with > > var marker =...; > GEvent.addListener(...); > delete(marker); Why are you deleting marker? > > But all GEvents I added seem not to work. Is it a problem with the > dynamic creation and deleting of the variable marker? Though I tried > storing all markers in an array and accessing them, which still > doesn't help with the GEvent problem. Have you seen Mike Williams' tutorial? He uses function closure to keep the markers context available for the even listener: Part 1 Markers with info windows http://econym.org.uk/gmap/basic1.htm -- Larry > > Yours, > surgeon -- 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.
