On Mar 31, 1:56 pm, Bastian Schnitzler <[email protected]> wrote:
> On 14:35 Wed 31 Mar     , [email protected] wrote:
>
> > 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?
>
> I want to open an Info window on click and I want to change the icon on
> mouseover and change it back on mouseout.
>
>
>
> > > In my code I always repeat a block for a marker with
>
> > > var marker =...;
> > > GEvent.addListener(...);
> > > delete(marker);
>
> > Why are you deleting marker?
>
> I am reusing the variable marker for the next 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
>
> Yes I have seen this tutorial.
>
>
>
> >   -- Larry
>
> > > Yours,
> > > surgeon
>
> Have you looked at my code?

Yes.  Was there something in particular you thought I should see
(other than you are not using function closure)?

  -- 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 
> > athttp://groups.google.com/group/google-maps-api?hl=en.- Hide quoted text -
>
> - Show quoted text -

-- 
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