Hallo,
in order to this Q&A, please let me ask another question.
Draw and remove is working fine. but i have to store the drawed objekt
in a buffer. I tried the following, but it dosnt work.
I need a help, please.

        // remove polygons, stored in mem_circles
        // like this: map.removeOverlay(mm_circles[ii]);
        // dosnt work, where is the mistake?
        for (var ii=0; i<mem_circles.length; ii++) {
          map.removeOverlay(mem_circles[ii]);
          mem_circles.pop;
        }
        // draw new polygon, it's work fine
        map.addOverlay(mm_circles[i]);
        // remember the last polygon
        mem_circles.push(mm_circles[i]);
best regards from germany
mima



On 24 Sep., 10:06, Mike Williams <[EMAIL PROTECTED]> wrote:
> You can't remove a "map.addOverlay()", you have to remove the GPolygon.
>
> In order to do that, you have to keep a reference to the GPolygon.
>
>   var rectangle = GPolygon.Shape(...);
>   map.addOverlay(rectangle);
>   map.removeOverlay(rectangle);
>
> --http://econym.org.uk/gmap
> The Blackpool Community Church Javascript Team

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

Reply via email to