A simple geofencing (polygon-creation) tool built on Leaflet. Check out the demo.
Check bower.json for specific dependency versions
Add dist/leaflet.geofencer.min.js into your HTML file.
Remember to include dependencies. They can be found in bower_components (exclude unneeded files -- Bower installation included more than necessary).