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);
}
.mobilecompass {
top: 5px;
right: 10px;
height: 42px;
width: 42px;
background-size: cover;
}
/*******************
* Chat
*/

View File

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