registering click listener for polygon works for clicks on editing vertex, but doesn't work on rectangle

422 views
Skip to first unread message

chris marx

unread,
May 20, 2013, 3:24:14 PM5/20/13
to google-map...@googlegroups.com
If you do this:

 

    google.maps.event.addListener(polygon,"click",function(polyMouseEvent){

      console.log(polyMouseEvent);

    });


on a polygon, a click on the editing vertex (the circle control point), fires the click event. If you add that same listener to a rectangle it fails. I can post an example if necessary, is this known/expected? I imagine this is related to the fact that the rectangle doesn't fire a polyMouseEvent, but why not? I realize that no one is ever going to remove any vertices, but I for one would like to know when a user has clicked the editing vertex. Also is this the kind of question that should now go on stackoverflow?

Enoch Lau (Google Employee)

unread,
May 21, 2013, 2:06:05 AM5/21/13
to google-map...@googlegroups.com
Please consider filing a feature request on our issue tracker: https://code.google.com/p/gmaps-api-issues/issues/list
Reply all
Reply to author
Forward
0 new messages