On Apr 26, 11:12 pm, Andrew Leach <[email protected]>
wrote:

> Presumably it's supposed to do that. What's the problem?

No, that's nonsense. With different points I have a line which does go
along your red line and where
points[0] and points[1] appear to be identical to poly.getVertex(7)
and (6) in that order. All four are GLatLngs and have identical
values.

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.

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