mirror of
https://github.com/webbukkit/dynmap.git
synced 2024-11-24 19:25:15 +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');
|
$(me).trigger('mapchanging');
|
||||||
var mapWorld = map.options.world;
|
var mapWorld = map.options.world;
|
||||||
if (me.maptype) {
|
if (me.maptype) {
|
||||||
$('.compass').removeClass('compass_' + me.maptype.compassview);
|
$('.compass').removeClass('compass_' + me.maptype.options.compassview);
|
||||||
$('.compass').removeClass('compass_' + me.maptype.name);
|
$('.compass').removeClass('compass_' + me.maptype.options.name);
|
||||||
}
|
}
|
||||||
$('.compass').addClass('compass_' + map.compassview);
|
$('.compass').addClass('compass_' + map.options.compassview);
|
||||||
$('.compass').addClass('compass_' + map.name);
|
$('.compass').addClass('compass_' + map.options.name);
|
||||||
var worldChanged = me.world !== map.options.world;
|
var worldChanged = me.world !== map.options.world;
|
||||||
var projectionChanged = (me.maptype && me.maptype.getProjection()) !== (map && map.projection);
|
var projectionChanged = (me.maptype && me.maptype.getProjection()) !== (map && map.projection);
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user