Leaflet.PointInPolygon icon indicating copy to clipboard operation
Leaflet.PointInPolygon copied to clipboard

Point-in-polygon functions based on Dan Sunday's C++winding number implementation.

Results 5 Leaflet.PointInPolygon issues
Sort by recently updated
recently updated
newest added

https://unpkg.com/

enhancement

code to reproduce ```javascript // just 3 squares let group = [[[0,0], [1,0], [1,1], [0,1], [0,0]], [[2,2], [3,2], [3,3], [2,3], [2,2]], [[0,4], [1,4], [1,5], [0,5], [0,4]] ]; let poly =...

code to reproduce: ```js // triangle with 'horns', to extend polygon's bounding box let triangle = [[0,0], [4,0], [1,1], [2,2], [0,2], [0,1], [-1,4], [0,0]]; let poly = L.polygon(triangle); if (poly.contains(L.latLng([[0,3]])))...

More a feature request than an issue. I wish it could calculate centroids also. Current leaflet only supports .getCenter() if the polygon is added to the map, so I have...