Polygon edit event

2,952 views
Skip to first unread message

AF

unread,
Nov 22, 2011, 11:48:07 AM11/22/11
to google-map...@googlegroups.com
When a rectangle is edited 'bounds_changed' is sent, when a circle is edited 'center_changed' or 'radius_changed' is sent, what gets sent when a node of a polygon gets moved? Just looking for 'mouseup' does not really help as this comes through during creation, I specifically want a polygon edited event. Thanks in advance.
 

Rossko

unread,
Nov 22, 2011, 4:47:31 PM11/22/11
to Google Maps JavaScript API v3
> When a rectangle is edited 'bounds_changed' is sent, when a circle is
> edited 'center_changed' or 'radius_changed' is sent, what gets sent when a
> node of a polygon gets moved?

Here are the docs
http://code.google.com/apis/maps/documentation/javascript/overlays.html#user_editable_shapes_events
You might need to force the english language version, sometimes
documentation lags behind in other languages

"Polygon editing events
insert_at
remove_at
set_at
The listener must be set on the polygon's path. If the polygon has
multiple paths, a listener must be set on each path."

AF

unread,
Nov 23, 2011, 5:08:25 AM11/23/11
to google-map...@googlegroups.com
Thanks, I will give that a try.
 
Reply all
Reply to author
Forward
0 new messages