iag-geo / bootleaf

An open-source version of IAG's Bootleaf fork
https://demo.bootleaf.xyz
MIT License
89 stars 65 forks source link

Show a Map Scale bar #33

Closed Breeckx closed 3 years ago

Breeckx commented 3 years ago

I can't find an option to show a scale bar on the map. Is is not available or is the setting hiding from me?

slead commented 3 years ago

There is nothing in Bootleaf to handle this, but you should be able to add a reference to https://github.com/daniellsu/leaflet-betterscale to the index.html file, and add it like:

L.control.betterscale().addTo(map);

Good luck!