This is a static archive of our old OpenStreetMap Help Site. Please post any new questions and answers at community.osm.org.

[closed] How can I check if a marker is inside a KML Layer boundary ?

0

Hello everbody, I'm new here. I would like to know, If is there a way to determine if a marker has entered an area covered by a KmlLayer. My .kml is mostly made up of some <polygons> with a bunch of coordinates that define the boundary.

asked 12 Feb '14, 06:59

Renan's gravatar image

Renan
11112
accept rate: 0%

closed 12 Feb '14, 10:21

Frederik%20Ramm's gravatar image

Frederik Ramm ♦
82.5k927201273

Does this relate to OpenStreetMap in some way? If not, you might be better asking somewhere more general like http://gis.stackexchange.com/ .

(12 Feb '14, 09:20) SomeoneElse ♦

The question has been closed for the following reason “Question is off-topic or not relevant” by Frederik Ramm 12 Feb ‘14, 10:21


One Answer:

3

This is not an OpenStreetMap related question. If you're using OpenLayers, check out http://dev.openlayers.org/docs/files/OpenLayers/Geometry/Polygon-js.html#OpenLayers.Geometry.Polygon.containsPoint - But this is not an OpenStreetMap related question.

answered 12 Feb '14, 10:20

Frederik%20Ramm's gravatar image

Frederik Ramm ♦
82.5k927201273
accept rate: 23%

Source code available on GitHub .