Add support for compass rose in all 8 cardinal directions
This commit is contained in:
parent
b9882955af
commit
ee3f07c6cd
13 changed files with 51 additions and 17 deletions
|
|
@ -292,7 +292,6 @@ DynMap.prototype = {
|
|||
|
||||
var updateHeight = function() {
|
||||
playerlist.height(sidebar.innerHeight() - (playerlist.offset().top - worldlist.offset().top) - 64); // here we need a fix to avoid the static value, but it works fine this way :P
|
||||
console.log('scrollheight=' + playerlist.scrollHeight() + ', height=' + playerlist.height());
|
||||
var scrollable = playerlist.scrollHeight() < playerlist.height();
|
||||
upbtn.toggle(scrollable);
|
||||
downbtn.toggle(scrollable);
|
||||
|
|
@ -357,8 +356,10 @@ DynMap.prototype = {
|
|||
}
|
||||
$(me).trigger('mapchanging');
|
||||
if (me.maptype) {
|
||||
$('.compass').removeClass('compass_' + me.maptype.compassview);
|
||||
$('.compass').removeClass('compass_' + me.maptype.name);
|
||||
}
|
||||
$('.compass').addClass('compass_' + map.compassview);
|
||||
$('.compass').addClass('compass_' + map.name);
|
||||
var worldChanged = me.world !== map.world;
|
||||
var projectionChanged = me.map.getProjection() !== map.projection;
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue