From 1d71bc6eeb87ff82e85c0fa3602b2568957941a9 Mon Sep 17 00:00:00 2001 From: Philipp Schaefer Date: Fri, 28 Feb 2014 11:34:19 +0100 Subject: [PATCH] moved scale bar to the bottom right on mobile. ATM the bottom right corner is used for nothing so it shouldn't clash with any other plugin --- plugins/scale-bar.user.js | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/plugins/scale-bar.user.js b/plugins/scale-bar.user.js index e75bf380..6fb64543 100644 --- a/plugins/scale-bar.user.js +++ b/plugins/scale-bar.user.js @@ -27,8 +27,8 @@ window.plugin.scaleBar.setup = function() { // are worse than Internet Explorer 6 whirring fans combined. Upgrade to the metric // system already. if (window.isSmartphone()) { - $('head').append(''); - window.map.addControl(new L.Control.Scale({position: 'bottomleft', imperial: false, maxWidth: 100})); + $('head').append(''); + window.map.addControl(new L.Control.Scale({position: 'bottomright', imperial: false, maxWidth: 100})); } else { $('head').append(''); window.map.addControl(new L.Control.Scale({position: 'topleft', imperial: false, maxWidth: 200}));