Thank you very much Enoch, you cleared a lot of doubts

Is there any way you can think of which would allow me to delete
vertexes by clicking on them? Or is Google working at exposing the
vertex-clicking event?


Adrien
On Nov 20, 4:01 pm, "Enoch Lau (Google Employee)"
<enoch...@google.com> wrote:
> > 1. How to capture the index id of a polygon's vertex when clicking on
> > a vertex of a polygon? I want to use this to delete verteces by
> > clicking on them.
>
> There is currently no event fired when a user clicks on a control point on
> an editable polygon.
>
> > 2. What event is fired if a polygon has been changed, ie by dragging a
> > vertex?
>
>  http://code.google.com/apis/maps/documentation/javascript/overlays.ht...
>
> You attach a set_at listener on the polygon's path, e.g.:
>
> google.maps.event.addListener(polygon.getPath(), 'set_at', function(index) {
>   // add code here.
>
> });
>
> Enoch

-- 
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