Determine the lat lngs of markers within a polygon

Posted by subh on Stack Overflow See other posts from Stack Overflow or by subh
Published on 2010-05-06T21:56:56Z Indexed on 2010/05/06 22:38 UTC
Read the original article Hit count: 253

Filed under:

I have a google maps app which plots markers as it loads. One of the new requirment is to to add a Polygon overlay encompassing a selection of markers by the user. I was able to achieve that using the Geometry Controls of the GMaps Utility Library

Now, the next step is to form a group of the selected markers for which I would need to determine if the lat lngs of the markers falls within the lat lngs of the polygon? Is there a way to determine the lat lngs of a polygon and compute if the marker's lat lng is within its boundaries?

© Stack Overflow or respective owner

Related posts about google-maps