Skip to content
This repository has been archived by the owner on Jan 22, 2018. It is now read-only.

jbelien/Leaflet.Coordinates

 
 

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

36 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Leaflet.Coordinates

What is this?

A Leaflet plugin to view mouse coordinates. Also the user can change the coordinates and get a marker on that position viewing the coordinates.

Tested with Leaflet 0.5+

Demo anyone?

Have a look

How to use?

L.control.coordinates({
	position:"bottomleft", //optional default "bootomright"
	decimals:2, //optional default 4
	decimalSeperator:".", //optional default "."
	labelTemplateLat:"Latitude: {y}", //optional default "Lat: {y}"
	labelTemplateLng:"Longitude: {x}", //optional default "Lng: {x}"
	enableUserInput:true, //optional default true
	useDMS:false, //optional default false
	useLatLngOrder: true //ordering of labels, default false-> lng-lat
}).addTo(map);

Releases

License

Creative Commons License
This work is licensed under a Creative Commons Attribution 3.0 Unported License.

Packages

No packages published

Languages

  • JavaScript 97.1%
  • CSS 2.9%