Lee Goddard
Lee Goddard

Reputation: 11173

Leaflet — point in which polygon? Rtree?

Does leaflet provide a method for determining which, if any, rendered point is within a polygon? Not by iterating over a bunch of shapes and checking bounds, but by using an rtree index, perhaps?

Upvotes: 0

Views: 799

Answers (1)

tmcw
tmcw

Reputation: 11882

See the Leaflet plugins page, on which you'll find leaflet point-in-polygon and Leaflet.LayerIndex.

Upvotes: 1

Related Questions