On Jan 3, 3:09 pm, Andrew <alouch...@gmail.com> wrote:
> I have a measure distance tool that calculates the length of a polyline of
> only 2 vertices that works fine, but I would like to be able to see the
> line before I make the second click (to end the polyline). Thanks!

Add an event listener to the map's mousemove event, and in the
listener draw a line from the start point to the current mouse
position.

Roughly like this:
http://maps.forum.nu/v3/gm_line_to_mouse.html


--
Marcelo - http://maps.forum.nu
--

-- 
You received this message because you are subscribed to the Google Groups 
"Google Maps JavaScript API v3" group.
To post to this group, send email to google-maps-js-api-v3@googlegroups.com.
To unsubscribe from this group, send email to 
google-maps-js-api-v3+unsubscr...@googlegroups.com.
For more options, visit this group at 
http://groups.google.com/group/google-maps-js-api-v3?hl=en.

Reply via email to