Point-in-polygon help needed

I’m using point-in-polygon from GitHub here: point-in-polygon

My code is always returning ‘outside’ regardless of what parameters I send into the function inside().
I’m just trying the author’s sample test code to see if it works for me or not and I can’t figure out what I am missing?

My fiddle code is here: Fiddle Code

Thank you…

Looks like my quote characters surrounding the points array was the problem. I removed the " " and it seems to be working correctly now.

This topic was automatically closed 91 days after the last reply. New replies are no longer allowed.