Make compass rose smaller on mobile device browsers

This commit is contained in:
Mike Primm 2011-11-28 20:50:42 -06:00
parent dc2dc578e9
commit 4992e92aab
2 changed files with 13 additions and 4 deletions

View File

@ -669,6 +669,14 @@
background-image: url(../images/compass_W.png); background-image: url(../images/compass_W.png);
} }
.mobilecompass {
top: 5px;
right: 10px;
height: 42px;
width: 42px;
background-size: cover;
}
/******************* /*******************
* Chat * Chat
*/ */

View File

@ -306,10 +306,11 @@ DynMap.prototype = {
updateHeight(); updateHeight();
}); });
// The Compass // The Compass
var compass = $('<div/>') var compass = $('<div/>').
.addClass('compass') addClass('compass');
.appendTo(container); if(L.Browser.mobile)
compass.addClass('mobilecompass');
compass.appendTo(container);
// TODO: Enable hash-links. // TODO: Enable hash-links.
/* /*
var link; var link;