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