mirror of
https://github.com/webbukkit/dynmap.git
synced 2024-12-28 19:47:45 +01:00
Merge pull request #337 from mikeprimm/master
Fix compass rose on new UI
This commit is contained in:
commit
832a79eb1f
@ -302,11 +302,11 @@ DynMap.prototype = {
|
||||
$(me).trigger('mapchanging');
|
||||
var mapWorld = map.options.world;
|
||||
if (me.maptype) {
|
||||
$('.compass').removeClass('compass_' + me.maptype.compassview);
|
||||
$('.compass').removeClass('compass_' + me.maptype.name);
|
||||
$('.compass').removeClass('compass_' + me.maptype.options.compassview);
|
||||
$('.compass').removeClass('compass_' + me.maptype.options.name);
|
||||
}
|
||||
$('.compass').addClass('compass_' + map.compassview);
|
||||
$('.compass').addClass('compass_' + map.name);
|
||||
$('.compass').addClass('compass_' + map.options.compassview);
|
||||
$('.compass').addClass('compass_' + map.options.name);
|
||||
var worldChanged = me.world !== map.options.world;
|
||||
var projectionChanged = (me.maptype && me.maptype.getProjection()) !== (map && map.projection);
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user