[Google Maps API v2] Re: moving elabels on mousemove over polygons
On Jun 7, 10:54 pm, xelawho <xela...@gmail.com> 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 google-maps-api@googlegroups.com.
To unsubscribe from this group, send email to google-maps-api+unsubscribe@googlegroups.com.
For more options, visit this group at http://groups.google.com/group/google-maps-api?hl=en.
0 Comments:
Post a Comment
Subscribe to Post Comments [Atom]
<< Home