Take the 2-minute tour ×
Geographic Information Systems Stack Exchange is a question and answer site for cartographers, geographers and GIS professionals. It's 100% free, no registration required.

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.

share|improve this question

1 Answer 1

up vote 3 down vote accepted

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

share|improve this answer

Your Answer

 
discard

By posting your answer, you agree to the privacy policy and terms of service.

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