Make compass rose smaller on mobile device browsers
This commit is contained in:
parent
a4056bc502
commit
047897d0b0
2 changed files with 13 additions and 4 deletions
|
|
@ -669,6 +669,14 @@
|
|||
background-image: url(../images/compass_W.png);
|
||||
}
|
||||
|
||||
.mobilecompass {
|
||||
top: 5px;
|
||||
right: 10px;
|
||||
height: 42px;
|
||||
width: 42px;
|
||||
background-size: cover;
|
||||
}
|
||||
|
||||
/*******************
|
||||
* Chat
|
||||
*/
|
||||
|
|
|
|||
|
|
@ -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;
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue