You create four empty elements in your polys array var polys = new Array(4); then .push the polygons onto the end of that array.
When you attempt to loop through that array, using for (var z = 0; z < polys.length; z ++ ) the first four elements are still undefined. polys[z].Contains(point) crashes because poly[0] is undefined. Try var polys = new Array(); -- Mike Williams http://econym.org.uk/gmap --~--~---------~--~----~------------~-------~--~----~ 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 -~----------~----~----~----~------~----~------~--~---
