Skip to content
master
Switch branches/tags
Code
This branch is up to date with master.
Contribute

Latest commit

 

Git stats

Files

Permalink
Failed to load latest commit information.
Type
Name
Latest commit message
Commit time
src
 
 
 
 
 
 
 
 
 
 
 
 

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

About

Works with Leaflet to capture mouseclicks on a map and display the associated coordinates with an easy way to copy them.

Topics

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published