[OpenLayers-Dev] point in polygon with KML

Christopher Schmidt crschmidt at metacarta.com
Sat May 2 00:00:39 EDT 2009


On Sat, May 02, 2009 at 12:32:28PM +1200, Ian Downey wrote:
> I am trying to implement a point in polygon type function in OpenLayers.

polygon.intersects(point) will return true/false.

> From what I have looked at so far, I  think I am going to have to read
> the KML file into features and then do an intersects on them? 

Yes.

> I think
> this could become very slow.

Okay.

Regards,
-- 
Christopher Schmidt
MetaCarta



More information about the Dev mailing list