Reputation: 185
Is it possible to add a scale bar to a map?
I was hoping for something 'built in' like:
map.addControl(new mapboxgl.Scale({position: 'bottom-right'}));
Seems it was possible via a leaflet control in the classic js
L.control.scale().addTo(map);
Upvotes: 8
Views: 10955