CloudMade/Leaflet — pull request #806 by jacobtoye (2012-07-16 02:50:58+00:00)
Title: Polyline/polygon intersection detection

I've added basic detection edge intersection for polylines and polygons. It will not detect overlapping colinear segments and endpoints inside segments.

I plan on using this with my Leaflet.draw plugin (https://github.com/jacobtoye/Leaflet.draw) where the user is drawing shapes and very unlikely to reproduce the above situations.