jacobtoye/Leaflet.draw — pull request #45 by Starefossen (2012-12-06 22:25:30+00:00)
Title: Snapping

Magnetic snapping capability to multiple features across multiple layers when drawing, and editing, polylines.

```javascript
var drawControl = new L.Control.Draw({
polyline: {
shapeOptions: {
snapping: {
enabled: true,	// enable snapping
layers: [myLayer1,myLayer2],	// layers to snap to
sensitivity: 20	// sensitivity (in pixels)
}
}
}
});
```