Fix compass with new UI
This commit is contained in:
parent
b1fab1f53e
commit
c061e1a08d
1 changed files with 4 additions and 4 deletions
|
|
@ -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…
Add table
Add a link
Reference in a new issue