This Leaflet plugin extends the Leaflet API with a LatLng control:
- The Latitude and Longnitude are displayed in a control.
- The user can change the values to move the map's center.
After loading leaflet.js
, src/Control.LatLng.js
and src/Control.LatLng.css
should be included and the control is activated by default.
Another position:
map.removeControl(map.latLngControl);
map.addControl(L.control.latLng({ position: "topleft" }));
- Support control positioning of the control.
- 51° 28' 38" N coordinate syntax.
The code of this plugin is heavily inspired by Kartena's Zoomslider and PanControl