On May 1, 5:40 pm, Metheus <[email protected]> wrote: > I replaced the onEvent lines with normal Event.bind calls. I also > changed the version to 2, but unfortunately neither of these changes > alter the behavior of the code.
I think that the behavior is correct, and your "workaround" is the correct way to end the drawing programatically. The polygon must end at the same point where it starts, otherwise you're effectively missing a side. It looks as if you have a complete polygon only because it is filled, but if you remove the fill you can see that the polygon is not complete. What your "workaround" does is to effectively close it, in case the user hasn't done so. Another way to close it would be to check if the fist vertex equals the last vertex, and if it doesn't then add a last vertex at the same location as the first vertex. -- Marcelo - http://maps.forum.nu -- > > And since it came up, is there a different group for discussion of the > experimental (2.x) API? > > Thanks. > . > > On May 1, 9:22 am, marcelo <[email protected]> wrote: > > > You are using undocumented features in the lines > > > poly.enableEditing({onEvent: 'mouseover'}); > > poly.disableEditing({onEvent: 'mouseout'}); > > > There is no documented option > > 'onEvent':http://code.google.com/apis/maps/documentation/reference.html#GPolyEd... > > > You're also using version 2.x which is experimental. > > > -- > > Marcelo -http://maps.forum.nu > > -- --~--~---------~--~----~------------~-------~--~----~ You received this message because you are subscribed to the Google Groups "Google Maps API" group. To post to this group, send email to [email protected] To unsubscribe from this group, send email to [email protected] For more options, visit this group at http://groups.google.com/group/Google-Maps-API?hl=en -~----------~----~----~----~------~----~------~--~---
