Clickable label marker mouseover

106 views
Skip to first unread message

yrm

unread,
Dec 23, 2011, 4:59:55 AM12/23/11
to google-map...@googlegroups.com
Hi,

Ok so what i have is a map with 1000+ markers and some polylines.
When the mouse goes over a marker i need to show a label containing several links(<a></a>).

I currently have it sort of working.
In the marker mouseover handler i show a label which is a OverlayView.
In the marker mouseout handler i call settimeout with a function to hide the label and attach the timeout id to the label.
In the label mouseover handler i clear the timeout that was set in the marker mouseout handler
In the label mouseout handler i just hide the label.

like i said this sort of works.. the problem is that allthough the label is shown on top of the polylines it still calls the label mouseout handler when there is a polyline underneath the label and the mouse moves over it.

So i started thinking about doing it a different(better) way.
I tried to change the marker shape in the mouseover so that the shape will cover the label as well.
couldnt get this to work because somehow the shape is allways undefined no matter what i do.

So if anybody has any code, examples or ideas how to create a marker label onmouseover with multiple clickable links in it please let me know!
Reply all
Reply to author
Forward
0 new messages