taclejj


Hello, I'm working with the version 4 of VE and I need to place some pushpins inside a polygon draw by the user after a search, how can I implement this


Re: How to determine if a point is inside a polygon?

Earthware


Hello

There is nothing built into VE4 or VE5 that will help you do this. Its definatly possible as you can get the polygonds boundaries but will take a reasonable ammount of custom javascript and I have not seen anyone else who has done this yet.

Maybe someone else on the forums has some sample code

Brian Norman

www.earthware.co.uk






Re: How to determine if a point is inside a polygon?

Magnus Naslund

This page might help you with your implementation:
http://alienryderflex.com/polygon/

Magnus





Re: How to determine if a point is inside a polygon?

taclejj

Thanks, that's what I have seen, I will have to implement some mathematics algorith to verify this.

Jesus Peregrina





Re: How to determine if a point is inside a polygon?

taclejj

Thanks Marcus, I think this will be very helpful, it seems to be a very easy algorith to implements.

Jesus Peregrina