Skip to content

Latest commit

 

History

History
18 lines (13 loc) · 445 Bytes

README.md

File metadata and controls

18 lines (13 loc) · 445 Bytes

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