Reputation: 11173
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
Reputation: 11882
See the Leaflet plugins page, on which you'll find leaflet point-in-polygon and Leaflet.LayerIndex.
Upvotes: 1