Hi Mike,
This sounds good. I would try this method. Thanks a lot. hkk On May 13, 12:39 pm, Mike Williams <[email protected]> wrote: > Wasn't it hkk who wrote: > > >I have tried the Z-index method, however, that does not meet my > >requirement. It can be set only once and I need it to be set on mouse > >over and mouse out events. > > What you might consider is having one "floating" marker with a very high > z-index, and all other markers having the default z-index. > > When the mouseover occurs, use .setLatLng to move the floating marker to > exactly the same location as the normal marker. To the user, it will > appear as if the normal marker has come to the front. > > Keep a global variable that holds a reference to the underlying normal > marker. When a click occurs on the floating marker, use > GEvent.trigger(narmalMarker,"click") to pass the click to the underlying > normal marker. When a mouseout occurs on the floating marker, move it to > an impossible location, such as north of the North Pole. Note that > clicks and mouseouts don't occur on the underlying marker because it is > covered by the floating marker. > > Or you might try experimenting with {clickable:false} on the floating > marker. > > Cosmetics: It might look prettier if the floating marker has no shadow. > > --http://econym.org.uk/gmap > The Blackpool Community Church Javascript Team --~--~---------~--~----~------------~-------~--~----~ 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 -~----------~----~----~----~------~----~------~--~---
