You need to create the polygons on a separate function, so as to obtain function closure on them. Otherwise the last polygon loaded is the one that gets affected.
-- Marcelo - http://maps.forum.nu -- On Feb 16, 7:08 pm, jt <[email protected]> wrote: > http://www.mexicoal.com/mymapstoolbar.html > > At the address above is a copy of the mymapstoolbar example, modified > to support loading of polygons from external data. Click on the "load > polygons" link to load two polys from a file. > > The loading part works ok, but deletion of vertices by clicking on > them is not working as intended: Seems like the click event is being > listened to by one poly, but a vertex is being deleted from the other > poly. > > The goal is to have the click-vertex-to-delete behavior work normally > for the polygons that are loaded, as it does for multiple polys drawn > manually. > > Any ideas would be appreicated, > jt --~--~---------~--~----~------------~-------~--~----~ 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 -~----------~----~----~----~------~----~------~--~---
