earthoutreach / earth-api-utility-library

Automatically exported from code.google.com/p/earth-api-utility-library
0 stars 0 forks source link

geo.Path.prototype.containsPoint returns false when two points share same coordinates #48

Open GoogleCodeExporter opened 9 years ago

GoogleCodeExporter commented 9 years ago
What steps will reproduce the problem?
1. add these points to Google Earth view:
lat="-37.985981" lon="20.598999"
lat="-37.985981" lon="20.598999"
2.Draw a selection polygon around both points 
3. geo.Path.prototype.containsPoint returns false.

What is the expected output? What do you see instead?
Expect a return value of true for both.

Please use labels and text to provide additional information.
I edited line 2221
oddNodes = !oddNodes;

to 

oddNodes = true;//!oddNodes;

and it returns the expected results. I don't know why the change fixes the 
problem because the logic remains the same but it did.

Original issue reported on code.google.com by mav...@gmail.com on 22 Sep 2014 at 7:45