Works with Leaflet to capture mouseclicks on a map and display the associated coordinates with an easy way to copy them.
Derived from original work by zimmicz. Forked mainly to provide npm functionality.
See demo here.
var c = new L.Control.Coordinates(); # you can send options to the constructor if you want to, otherwise default values are used
c.addTo(map);
map.on('click', function(e) {
c.setCoordinates(e);
});