PolyMouseEvents not implemented yet

112 views
Skip to first unread message

Pil

unread,
Nov 13, 2012, 2:15:48 AM11/13/12
to Google Maps JavaScript API v3
It seems that the PolyMouseEvents as documented here

https://developers.google.com/maps/documentation/javascript/reference#PolyMouseEvent

aren't implemented yet.

Enoch Lau (Google Employee)

unread,
Nov 13, 2012, 3:18:05 AM11/13/12
to google-map...@googlegroups.com
The properties edge, path, vertex are only on the event object for editable polylines/polygons.

Pil

unread,
Nov 14, 2012, 10:25:33 AM11/14/12
to Google Maps JavaScript API v3
Thanks, I do not prefer to make my polylines editable, so the
flexibility of my polylines are beyond the 'editability' of the
drawing manager.



On Nov 13, 9:18 am, "Enoch Lau (Google Employee)"
<enoch...@google.com> wrote:
> The properties edge, path, vertex are only on the event object for editable
> polylines/polygons.
>
>
>
>
>
>
>
> On Tuesday, November 13, 2012 6:16:01 PM UTC+11, Pil wrote:
>
> > It seems that the PolyMouseEvents as documented here
>
> >https://developers.google.com/maps/documentation/javascript/reference...
>
> > aren't implemented yet.

Enoch Lau (Google Employee)

unread,
Nov 14, 2012, 5:46:00 PM11/14/12
to google-map...@googlegroups.com
If you want to get edge, path, vertex for non-editable polylines/polygons, feel free to file a feature request: http://code.google.com/p/gmaps-api-issues/issues/list

Pil

unread,
Nov 15, 2012, 1:05:04 PM11/15/12
to Google Maps JavaScript API v3
Thanks, Enoch.

Hmm, I mean my polylines are more flexible than the drawing managers
possibilities.
Or should this be possible with the drawing manager?

http://www.wolfpil.de/v3/snapable-lines.html




On Nov 14, 11:46 pm, "Enoch Lau (Google Employee)"

Enoch Lau (Google Employee)

unread,
Nov 15, 2012, 5:17:04 PM11/15/12
to google-map...@googlegroups.com
I see - you wanted to know which edge your mouse is over so that you can insert the new vertex in the right place? Unfortunately, that's currently not in the event. Drawing manager can only insert a new vertex when dragging a control point in the middle of the edge.
Reply all
Reply to author
Forward
0 new messages