[GIS] leaflet show miles/kilometers

leafletmaps

Googlemaps shows you how large an area is on a map by showing a small bar with the number of miles/kilometers at the bottem left. Does leaflet also support this somehow?

I do not see it listed in the docs at leafletjs but it seems like something that the library should support.

Best Answer

I think you are looking for the scale bar. Use L.control.scale().addTo(map); (ref. Leaflet documentation)