Can we have the scale bar in meters?

2 posts / 0 new
Last post
Sacapuce
Can we have the scale bar in meters?

A present, the scale bar is in feet, how can I have it in meters?

Thanks


MQBrianCoakley
MapQuest.js is based on

MapQuest.js is based on Leaflet. The base Leaflet map has its scale control documentation here. Here is how I did it.

 

L.control.scale({metric:true, imperial:false}).addTo(map);