leaflet-coordinates-control
v1.0.2
Published
Captures mouseclick and displays its coordinates with easy way to copy them
Maintainers
Readme
Leaflet Coordinates Control
Captures mouseclick and displays its coordinates with easy way to copy them.
Demo (click here)
Installation
Install via npm
npm i leaflet-coordinates-controlInclude as ES6 Module
import 'leaflet-coordinates-control';
import 'L.Control.Coordinates.css';How to use
var c = L.control.coordinates().addTo(this.map);
this.map.on('click', function (e) {
c.setCoordinates(e);
});Credit
This is my first leaflet plugin, this whole structure was based on the zimmicz project. So don't be surprised to see somefamiliar code.

