On Sep 6, 11:15 am, "[EMAIL PROTECTED]" <[EMAIL PROTECTED]> wrote: > On Sep 6, 11:04 am, marcelo <[EMAIL PROTECTED]> wrote: > > > 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.
Or you may want to put it at the center of the polygon (although the center of "10" is in "2" because of its strange shape. Right now label "12" ends up on top of label "5" because of the way you have defined the polygons (the order of the points). > > And then you get an error in IE because "listofterritories_text" is > undefined when you try to add stuff to it. You are missing a: > var listofterritories_text = ""; > > -- Larry --~--~---------~--~----~------------~-------~--~----~ 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 -~----------~----~----~----~------~----~------~--~---
