> I think for objects you need an identity test > poly.getVertex(7)===points[0] > rather than an equality test > poly.getVertex(7)==points[0] > but that still evaluates as false. > > You could use > poly.getVertex(7).toString()==points[0].toString() > which does return true, but it's a bit of a hack.
By chance I just read about this in one of Mike's wonderful notes ... http://econym.org.uk/gmap/byreference.htm very last paragraph The 'hack' is indeed necessary to compare complex objects like these points cheers, Ross K --~--~---------~--~----~------------~-------~--~----~ 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 -~----------~----~----~----~------~----~------~--~---
