On Feb 25, 9:30 am, BuckyE <[email protected]> wrote:

> But I can't make the same function work from the markers. Obviously
> the code
>        GEvent.addListener(marker, "mouseover", function() {
>          map.addOverlay(colorrollovermarkers[marker.myindex]);
>         });
> is failing.

That might work better but I can see in your link:

        GEvent.addListener(marker, "mouseover", function() {
         map.addOverlay(colorrollovermarkers[i]);
        });

Where the value of 'i' is not passed to the function. So at the moment
of "mouseover" the value of 'i' is wrong.

It's not my intention to depress you, but I am afraid you are going to
face new problems. What happens if you addOverlay() a new marker  by
"mouseover" of certainMarker. I am not sure if you get "mouseout" of
certainMarker ever. I think that is fixed by setting the overlaid
hilighting marker {clickable:false}.



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