Skip to content

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

License

Notifications You must be signed in to change notification settings

zimmicz/Leaflet-Coordinates-Control

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

3 Commits
 
 
 
 
 
 
 
 

Repository files navigation

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

About

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

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published