Smaller status bar to suit mobile and further tweaked scale bar position for small mobile displays.

This commit is contained in:
hastarin
2013-05-12 14:14:58 +10:00
parent cb66801d9f
commit a150d54dd7
3 changed files with 25 additions and 26 deletions

View File

@ -28,7 +28,7 @@ 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('<style>.leaflet-control-scale { position: absolute; bottom: 15px; left: 0px; } </style>');
$('head').append('<style>.leaflet-control-scale { position: absolute; bottom: 15px; left: 0px; margin-bottom: 20px !important; } </style>');
window.map.addControl(new L.Control.Scale({position: 'bottomleft', imperial: false, maxWidth: 200}));
} else {
$('head').append('<style>.leaflet-control-scale { position: absolute; top: 2px; left: 40px; } </style>');