Captures mouseclick and displays its coordinates with easy way to copy them.
JavaScript CSS
Switch branches/tags
Nothing to show
Clone or download
2
Latest commit 0d21a1c Jun 27, 2014
Permalink
Failed to load latest commit information.
Control.Coordinates.css initial commit Jun 27, 2014
Control.Coordinates.js initial commit Jun 27, 2014
LICENSE.md license Jun 27, 2014
README.md readme demo link Jun 27, 2014

README.md

Leaflet Coordinates Control

Captures mouseclick and displays its coordinates with easy way to copy them.

Demo

See demo here.

How to use

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);
});