On this line: var maplabel = new ELabel(pts[a], territory_name, "style1");
when the value of a reaches 10, the correcponding polygon on the list has only 5 points, so pts[a] is undefined. Try using pts[0] instead, to get always the first point of the polygon. -- Marcelo - http://maps.forum.nu -- --~--~---------~--~----~------------~-------~--~----~ 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 -~----------~----~----~----~------~----~------~--~---
