diff --git a/templates/index.html b/templates/index.html index 209e5e9..32226c8 100644 --- a/templates/index.html +++ b/templates/index.html @@ -259,6 +259,8 @@ map.addControl(new L.Control.Layers(map_layers)); // Add map scale. + if (chase_config['unitselection'] == "imperial1") { L.control.scale({imperial: true, metric: false}).addTo(map) ;} + if (chase_config['unitselection'] == "metric") { L.control.scale({imperial: false, metric: true}).addTo(map) ;} L.control.scale({imperial: false}).addTo(map); // Add sidebar to map (where all of our controls are!)