From 6d66d45d43c44ddb0f39d6bc7a23ab426faf14df Mon Sep 17 00:00:00 2001 From: Mike Primm Date: Thu, 28 Jul 2011 00:43:13 -0500 Subject: [PATCH] Fix compass with new UI --- web/js/map.js | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/web/js/map.js b/web/js/map.js index bb5b18ac..fe978e1f 100644 --- a/web/js/map.js +++ b/web/js/map.js @@ -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);