leaflet-copy-coordinates-control

0.1.6 • Public • Published

Leaflet Copy Coordinates Control

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.

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

Package Sidebar

Install

npm i leaflet-copy-coordinates-control

Weekly Downloads

2

Version

0.1.6

License

MIT

Unpacked Size

7.96 kB

Total Files

7

Last publish

Collaborators

  • tinjaw