Hello,

I want to draw multiple items on a map, basically I have an array of
12 Lat/Lng pairs and with a loop I create a circle around each of the
pairs. from each circle I create I create a polygon  and than use
addOverlay to add it to the map.

Every time in the loop I create a new GPolygon, however after 2
iterations or so the loop seems to 'freeze up'. (and I get browser
warning messages about a script running 'too slow')

Do I need to 'destroy' the polygon object after I created and used
it ? (or is the scope of an object created in a loop larger than just
the body of the loop ?)
If I need to destroy it, how do I do that for the GPolygon ?

thanks,

Ron


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