From ee924d99bcabcb95a30cad213f4a6402a1c3d34d Mon Sep 17 00:00:00 2001 From: David Rollinson Date: Tue, 29 Dec 2020 16:26:22 +0800 Subject: [PATCH] Fix metric imperial scale bar --- templates/index.html | 1 - 1 file changed, 1 deletion(-) diff --git a/templates/index.html b/templates/index.html index f69d6f3..76f6d33 100644 --- a/templates/index.html +++ b/templates/index.html @@ -261,7 +261,6 @@ // 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!) var sidebar = L.control.sidebar('sidebar').addTo(map);