On this line:
var maplabel =  new ELabel(pts[a], territory_name, "style1");

The value of a is 11 but the 11th polygon on the list has only 5
points.

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

Reply via email to