From ad85d93381607b7b11d21669e4a1ab8ee7190f80 Mon Sep 17 00:00:00 2001 From: Jon Atkins Date: Sun, 1 Dec 2013 02:57:08 +0000 Subject: [PATCH] plugin: level colour highlighter fixed --- plugins/portal-highlighter-level-color.user.js | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) diff --git a/plugins/portal-highlighter-level-color.user.js b/plugins/portal-highlighter-level-color.user.js index 4662f295..5118fd77 100644 --- a/plugins/portal-highlighter-level-color.user.js +++ b/plugins/portal-highlighter-level-color.user.js @@ -2,7 +2,7 @@ // @id iitc-plugin-highlight-portals-level-color@vita10gy // @name IITC plugin: highlight portals by level color // @category Highlighter -// @version 0.1.1.@@DATETIMEVERSION@@ +// @version 0.1.2.@@DATETIMEVERSION@@ // @namespace https://github.com/jonatkins/ingress-intel-total-conversion // @updateURL @@UPDATEURL@@ // @downloadURL @@DOWNLOADURL@@ @@ -22,8 +22,7 @@ window.plugin.portalHighligherPortalsLevelColor = function() {}; window.plugin.portalHighligherPortalsLevelColor.colorLevel = function(data) { - var d = data.portal.options.details; - var portal_level = Math.floor(getPortalLevel(d)); + var portal_level = data.portal.options.data.level; var opacity = .6; data.portal.setStyle({fillColor: COLORS_LVL[portal_level], fillOpacity: opacity}); }