You have not implemented the change that Lrrry indicated. There is no method called clearOverlay() in the GMap2 object.
Take a look at this example: http://maps.forum.nu/gm_sensitive_circle2.html It does the same, but with a circle. (Also a GPolygon) -- Marcelo - http://maps.forum.nu -- On Jan 23, 9:39 am, peziza <[email protected]> wrote: > > map.clearOverlay(polygon);}); > > > should be: > > map.removeOverlay(polygon);}); > > > -- Larry > > Thanks Larry, but I have tried that and it does not work either. I > clears the first polygon as it should, be if I drag one more time, the > new, and the following, polygons does not clear. It is like the > map.addoverlay(polygon) step in the dragend-listener is not named > "polygon" but something else, and therefore does not clear? > > Chr. Lange --~--~---------~--~----~------------~-------~--~----~ 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 -~----------~----~----~----~------~----~------~--~---
