> So: in your mouseover event, set a global flag to say the mouse is
> over the polygon; in your mouseout event, unset the flag; change your
> mousemove event so it's an event on the *map* (which is documented),
> and test the flag to see if the mouse is over the polygon in order
> that you can move the label.

thanks for taking the time to explain that, Andrew. I'm not sure if I
actually did all of it, but it turns out that adding the overlay
variable to the function call in the mousemove listener, like this:

GEvent.addListener(polyg, 'mousemove', function(overlay,point){

was all that was required. It's a bit jumpy, but for an undocumented
function, seems to work ok :D

-- 
You received this message because you are subscribed to the Google Groups 
"Google Maps API V2" 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