9

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.

22

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

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

Not the answer you're looking for? Browse other questions tagged or ask your own question.