On Jun 7, 10:54 pm, xelawho <[email protected]> wrote:
>
> I can get them to appear on mouseover (setting their location
> using .getBounds().getCenter();) and disappear on mouseout, but I
> would like for the label to move along with the cursor when it is over
> the polygon.
>
> Which I suspect is just a case of setting up a mousemove listener and
> then passing the coordinates to the eLabel. But that's the bit I can't
> figure out, and I can't see from the debugger if the updated
> coordinates are getting passed as the mouse moves, or if it's just the
> original location.
I suggest trying it.
I suspect that there will be a problem with closure on the ELabel,
although something as simple as
elabs[k].setPoint(point);
might be sufficient.
--
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.